https://github.com/cqcl/text_to_discocirc
https://github.com/cqcl/text_to_discocirc
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cqcl/text_to_discocirc
- Owner: CQCL
- License: apache-2.0
- Created: 2023-02-23T16:57:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T16:46:05.000Z (almost 2 years ago)
- Last Synced: 2025-07-04T02:44:08.001Z (12 months ago)
- Language: Jupyter Notebook
- Size: 91.8 MB
- Stars: 7
- Watchers: 5
- Forks: 3
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DisCoCirc
Automatic generation of DisCoCirc circuits using CCG.
To install, run `pip install -e .`,
which installs the package in "editable mode".
(No need to reinstall after each edit.)
You will also need a spacy model:
```bash
python -m spacy download en_core_web_trf
python -m spacy download en_core_web_lg
python -m coreferee install en
```
## Example
```python
from discocirc.pipeline.text_to_circuit import text_to_circuit
text_to_circuit("Frank hangs Claudio. Harmonica shoots Snakey. Harmonica shoots Frank.").draw()
```