Code Monkey home page Code Monkey logo

c2po's Introduction

C2PO

Code accompanying the paper "Automated Storytelling via Causal, Commonsense Plot Ordering".

BibTex

@article{ammanabrolu20automated,
  title={Automated Storytelling via Causal, Commonsense Plot Ordering},
  author={Ammanabrolu, Prithviraj and Cheung, Wesley and Broniec, William and Riedl, Mark O.},
  journal={CoRR},
  year={2020},
  url={https://arxiv.org/abs/2009.00829},
  volume={abs/2009.00829}
}
  • Run plot extraction method (/Plot-Extraction/run.sh) on story summaries (/stories/) to get extracted plot lines

  • Use the extracted plot lines for Hierarchical, BERT, and C2PO methods (further instructions in respective folders) The stories folder has the 10 randomly picked ones for used for plot extraction in the evaluation

c2po's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

c2po's Issues

Error happens when "import neuralcoref"

Thank you so much for opening source this wonderful project.

I install neuralcoref by the following command

pip install neuralcoref --no-binary neuralcoref

However, when I run import neuralcoref, I encounter the following error

Traceback (most recent call last):
  File "Plot-Extraction/extract.py", line 7, in <module>
    import neuralcoref
  File "/root/.virtualenvs/c2po/lib/python3.6/site-packages/neuralcoref/__init__.py", line 14, in <module>
    from .neuralcoref import NeuralCoref
  File "strings.pxd", line 23, in init neuralcoref.neuralcoref
ValueError: spacy.strings.StringStore size changed, may indicate binary incompatibility. Expected 112 from C header, got 64 from PyObject

My environments:

python3.6.6, macOS / Linux
neuralcoref==4.0

Can you upload the requirements.txt for avoiding unnecessary dependency problems.

python and lib versions

Hi,

Fascinating article. I tried the code (ran run.sh) and ran into difficulties that I suspect has to do with versions;

Traceback (most recent call last):
  File "extract.py", line 3, in <module>
    import neuralcoref
  File "/home/yarc/.pyenv/versions/210809c2po/lib/python3.7/site-packages/neuralcoref/__init__.py", line 14, in <module>
    from .neuralcoref import NeuralCoref
  File "strings.pxd", line 23, in init neuralcoref.neuralcoref
ValueError: spacy.strings.StringStore size changed, may indicate binary incompatibility. Expected 112 from C header, got 64 from PyObject

Could you please provide which python version you used and perhaps a requirements.txt file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.