Skip to content

AnnaNPearson/text_to_discocirc

 
 

Repository files navigation

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:

python -m spacy download en_core_web_trf
python -m spacy download en_core_web_lg
python -m coreferee install en

Example

from discocirc.pipeline.text_to_circuit import text_to_circuit

text_to_circuit("Frank hangs Claudio. Harmonica shoots Snakey. Harmonica shoots Frank.").draw()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 81.6%
  • Python 18.4%