Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make predictions on new data? #1

Open
yotamnahum opened this issue Feb 18, 2021 · 1 comment
Open

How to make predictions on new data? #1

yotamnahum opened this issue Feb 18, 2021 · 1 comment

Comments

@yotamnahum
Copy link

HI,

First of all thanks for sharing this important work! Arabic coreference resolution it's somthing that could make a big influance to the Arabic NLP community!

Two questions:

1.How to make predictions on new data?
In your examples I saw only tarin and evaluation instructions. It will be wonderful if you add prediction (without evaluation) instructions.

  1. It seems that your pre-traind model is missing some files (mainly vocab and config files). Am I missing somthing? :)

Thanks!

@juntaoy
Copy link
Owner

juntaoy commented Feb 19, 2021

Hi, Thanks for the kind words:)

So the system does output the CoNLL file when you run the evaluation.py but the output is stored in a temporary file. If you want to redirect the output you can change line 95 of the conll.py

with tempfile.NamedTemporaryFile(delete=False, mode="w") as prediction_file:

You will need to convert your data into both CoNLL format and json format and replace the conll_test_path and test_path with your files respectively.

For the second question, the pre-trained model is in the logs folder, and the files in the data folder are the mention predicted by Yu et al 2020's mention detector (you don't need them if you use the joint system).

Best,

Juntao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants