Git Product home page Git Product logo

Comments (6)

chrisjbryant avatar chrisjbryant commented on May 28, 2024 3

Looks like you forgot to install a spacy model.

You need to run python3 -m spacy download en after you pip install errant. It's the last line in the installation instructions.

from errant.

chrisjbryant avatar chrisjbryant commented on May 28, 2024 2

Hi,

You don't need to be confused because you are correct!

  1. Use errant_parallel to build a new M2 file from the original sentences and your corrected sentences.
  2. Use errant_compare to compare your system M2 file with the gold standard M2 file.

That's all there is to it. :)

from errant.

chrisjbryant avatar chrisjbryant commented on May 28, 2024 1

The gold M2 file for W&I+LOCNESS test is private to prevent people from overfitting to it.

Instead, you can submit your corrected W&I+LOCNESS output to Codalab.
All the instructions on how to do this are also available on that page. :)

from errant.

aimanmutasem avatar aimanmutasem commented on May 28, 2024

Thank you @chrisjbryant for your support. I have applied errant as:

errant_parallel -orig ./data/test_bea.orig -cor ./data/test_data.txt -out ./data/out_data.m2

I got the below error:

Loading resources...

Warning: no model found for 'en'

Only loading the 'en' tokenizer.

Processing parallel files...
Traceback (most recent call last):
File "/home/aiman/anaconda3/bin/errant_parallel", line 8, in
sys.exit(main())
File "/home/aiman/anaconda3/lib/python3.6/site-packages/errant/commands/parallel_to_m2.py", line 27, in main
orig = annotator.parse(orig, args.tok)
File "/home/aiman/anaconda3/lib/python3.6/site-packages/errant/annotator.py", line 25, in parse
self.nlp.tagger(text)
TypeError: 'NoneType' object is not callable

Any suggestions?

from errant.

aimanmutasem avatar aimanmutasem commented on May 28, 2024

Thank you, dear.

Everything is working well, I have ignored to use it with a virtual environment :)

One last favour

For W&I+LOCNESS V2.1test set, I got just 'ABCN.test.bea19.orig', corrected sentence isn't an m2 file.

Kindly, do you know any way to get the gold M2 for W&I+LOCNESS or how to generate it?

from errant.

aimanmutasem avatar aimanmutasem commented on May 28, 2024

Thank you so mutch ...

from errant.

Related Issues (20)

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.