GithubHelp home page GithubHelp logo

Comments (15)

fancyerii avatar fancyerii commented on July 22, 2024 3

it seems some conll scripts can only use python 2.x

from neuralcoref.

marc88 avatar marc88 commented on July 22, 2024 3

@rgabbard Just in case if you may suggest, I found a github repo for the files here
https://github.com/ontonotes/conll-formatted-ontonotes-5.0

Edit:
This repo here gives a wonderful and crisp explanation on how to go about it. Please take a look!
https://github.com/yuchenlin/OntoNotes-5.0-NER-BIO

Regards

from neuralcoref.

svlandeg avatar svlandeg commented on July 22, 2024 3

We've also updated the readme file to reflect the changes necessary for this script to run with Python 3.X !

from neuralcoref.

gabbard avatar gabbard commented on July 22, 2024 1

Should anyone else run into the please make sure that you are pointing to the directory 'conll-2012' problem in the future, it looks like the script expects the command-line argument to be exactly the string "conll-2012" and not some alternate relative or absolute path which points to the same directory. As a consequence, you need to run the script from the parent directory of conll-2012 so you can use that string exactly as the argument

from neuralcoref.

gabbard avatar gabbard commented on July 22, 2024 1

@marc88 : yes, my solution worked in my case

from neuralcoref.

thomwolf avatar thomwolf commented on July 22, 2024

Hi @vrian,
Can you try to follow the instructions and scripts from this page: http://cemantix.org/data/ontonotes.html
I think they are more up to date than the shared task ones (I will update the readme).
There is an example on how to use skeleton2conll.sh.

from neuralcoref.

vrian avatar vrian commented on July 22, 2024

Thanks @thomwolf! I see that's the conll-formatted one. I also tried it but the error is the same. Here is the issue I made about it ontonotes/conll-formatted-ontonotes-5.0#2

Edit: Sorry I forgot to include the link. I'll check the instructions again in a while

from neuralcoref.

thomwolf avatar thomwolf commented on July 22, 2024

You have to follow carefully the example given on http://cemantix.org/data/ontonotes.html regarding how to use the scripts.

Replace the path given in the example by the path to the CoNLL data folder on your computer. I don't have the CoNLL data folder setup right now on my system so I can't really help you regarding which exact path you have to put in to get the script working but try a few solutions and you should be able to find the right paths for your setup.

If you have an error again, please post the new error here. I don't think it can be the exact same error as in your first message as the script was updated on that error.

from neuralcoref.

vrian avatar vrian commented on July 22, 2024

I rechecked the instructions carefully and made some progress. A different error is displayed

-> python conll-formatted-ontonotes-5.0/scripts/skeleton2conll.py ontonotes-release-5.0/data/files/data/english/annotations/bc/cnn/00/cnn_0001.parse conll-formatted-ontonotes-5.0/data/train/data/english/annotations/bc/cnn/00/cnn_0001.gold_skel conll-formatted-ontonotes-5.0/data/train/data/english/annotations/bc/cnn/00/cnn_0001.gold_conll -edited --text File "conll-formatted-ontonotes-5.0/scripts/skeleton2conll.py", line 392 except InvalidSexprException, e: ^ SyntaxError: invalid syntax Exit code: 1 conll-formatted-ontonotes-5.0/scripts/skeleton2conll.sh: line 93: break: only meaningful in a 'for', 'while', or 'until' loop

the command I ran is:

$ "conll-formatted-ontonotes-5.0/scripts/skeleton2conll.sh" -D "ontonotes-release-5.0/data/files/data" "conll-formatted-ontonotes-5.0/"

I am using Python 3.6.5 64-bit

here are the tree directory in case:

image

image

from neuralcoref.

liqian14 avatar liqian14 commented on July 22, 2024

Hi, @vrian ,is this problem solved?I have the same problem.

from neuralcoref.

d5555 avatar d5555 commented on July 22, 2024

Hi, @vrian , did you solve the problem ?

from neuralcoref.

marc88 avatar marc88 commented on July 22, 2024

@rgabbard Did your suggestion solve your problem? Not working for me though.

from neuralcoref.

nth-attempt avatar nth-attempt commented on July 22, 2024

@vrian you can convert the skeleton2conll.sh file into python 3 with something like

2to3 -w skeleton2conll.sh

from neuralcoref.

stale avatar stale commented on July 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from neuralcoref.

hoangcuong2011 avatar hoangcuong2011 commented on July 22, 2024

Using Python 2 is perhaps the simplest way to solve the issue!

from neuralcoref.

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.