An open API service indexing awesome lists of open source software.

https://github.com/cqcl/text_to_discocirc


https://github.com/cqcl/text_to_discocirc

Last synced: 10 months ago
JSON representation

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()
```