Code Monkey home page Code Monkey logo

coreferee_french's People

Contributors

pantalaymon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

databill86

coreferee_french's Issues

Correct the code in example

Many thanks for your repo. It works pretty well for my task. However, there is a minor error on your demo code. If readers simply follow your code. There should be an error:

create_mentions(doc, rules_analyzer)
Traceback (most recent call last):
File "", line 1, in
File "/work/huyhien-v/Experiments/Project/fr-coref/coreferee_french/build_mentions.py", line 92, in create_mentions
rules_analyzer = nlp.get_pipe("coreferee").annotator.rules_analyzer
AttributeError: 'LanguageSpecificRulesAnalyzer' object has no attribute 'get_pipe'

It should be create_mention(doc, nlp), and in

for chain in doc._.coref_chains:
... for mention in chain:
... heads = [doc[i] for i in mention.token_indexes]
... mention_phrase = build_mention(heads, rules_analyzer)
... print(heads, '->', mention_phrase)

It should be mention_phrase = build_mention(heads, nlp)

Hope it saves time for others ๐Ÿ˜ธ

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.