Git Product home page Git Product logo

conlleval.py's People

Contributors

spyysalo avatar

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  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

conlleval.py's Issues

E-B tag sequences

The break in sequences where an E tag is followed by a B tag is ignored. For example,

North B-MISC B-MISC
African E-MISC I-MISC
Grand B-MISC I-MISC
Prix E-MISC E-MISC

(correct: "North African" and "Grand Prix", two mentions; predicted: "North African Grand Prix", one mention) is evaluated as

processed 4 tokens with 1 phrases; found: 1 phrases; correct: 1.
accuracy:  50.00%; precision: 100.00%; recall: 100.00%; FB1: 100.00
             MISC: precision: 100.00%; recall: 100.00%; FB1: 100.00  1

Giving a contradictory 100% f-score with 50% accuracy.

This occurs also in the original perl version. While not an issue for the IOB and IOE schemes that the script explicitly supports (see http://arxiv.org/pdf/cs/9907006.pdf), this is arguably wrong for IOBES (which mostly evaluates as expected).

OSError: conlleval: unexpected number of features in line ...

My output.txt file is the following format:
Sao NC B-LOC B-LOC
Paulo VMI I-LOC I-LOC
( Fpa O O
Brasil NC B-LOC B-LOC
) Fpt O O
, Fc O O
23 Z O O
may NC O O
( Fpa O O
EFECOM NP B-ORG B-ORG
) Fpt O O
. Fp O O

Which should be okay according to the conll format. But after running the conll.py I am getting this error:
OSError: conlleval: unexpected number of features in line Sao NC B-LOC B-LOC
Do you have any idea why? @spyysalo
Thanks in advance!

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.