Comments (15)
it seems some conll scripts can only use python 2.x
from neuralcoref.
@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.
We've also updated the readme file to reflect the changes necessary for this script to run with Python 3.X !
from neuralcoref.
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.
@marc88 : yes, my solution worked in my case
from neuralcoref.
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.
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.
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.
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:
from neuralcoref.
Hi, @vrian ,is this problem solved?I have the same problem.
from neuralcoref.
Hi, @vrian , did you solve the problem ?
from neuralcoref.
@rgabbard Did your suggestion solve your problem? Not working for me though.
from neuralcoref.
@vrian you can convert the skeleton2conll.sh
file into python 3 with something like
2to3 -w skeleton2conll.sh
from neuralcoref.
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.
Using Python 2 is perhaps the simplest way to solve the issue!
from neuralcoref.
Related Issues (20)
- Wrong average embedding during inference due to a small bug in neuracoref.pyx
- Missing implementation of doc embeddings during inference
- Wrong Mention Type one-hot vectors during training due to a small bug in dataset.py
- Training Dataset Format
- Can't install neuralcoref, keep getting this error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 HOT 4
- Error in training without changing anything from the default instructions
- GPU support - cuda 11.1 - TypeError: Unsupported type <class 'numpy.ndarray'>
- (base) C:\Users\sk136\neuralcoref>python -m neuralcoref.train.learn --train ./data/train/ --eval ./data/dev/ facing problem while executing.. this command HOT 1
- Results completely differ from web-demo
- Compatibility with Spacy 3+ HOT 7
- Regarding finetuning neuralcoref
- dels HOT 1
- neuralcoref not supporting python 3.9 version HOT 1
- spacy.strings.StringStore size changed, may indicate binary incompatibility HOT 5
- Dependency Problem HOT 1
- I can't install neuralcoref HOT 8
- Unresolved dependencies?
- Kernel crashes when trying to run demo code HOT 1
- Process finished with exit code -1073741819 (0xC0000005)
- installation failed with HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuralcoref.