-
Notifications
You must be signed in to change notification settings - Fork 215
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 give test data as pdf instead of annotated json file #10
Comments
I've use pdfminier.six package to convert pdf to text and apply my custom ner model to make predictions. |
I am getting this error when I try to run the script : ValueError: [E024] Could not find an optimal move to supervise the parser. Usually, this means the GoldParse was not correct. For example, are all labels added to the model? |
Hi @chaitanya1019 , you can test data with pdf file? if yes, can you share with me how to test. |
Hi @chaitanya1019 Could you please share the code with which you are doing inference. How are you using pdf/doc/docx to test the model instead of already annotated testdata.json file? |
@chaitanya1019 I was able to successfully give a pdf/txt file to model and get a decent output. I don't think your code is the problem. I had same issue of model being messed up after loading from disk. I could find out that it was an issue with older version of spacy. I am using spacy 2.2.3. I trained the model with this and was able to do inference without messing up the model. The only problem is the dataset. In the new version, they dont allow dataset entities to overlap and this will raise ValueError: [E103]. I had to mannually remove all conflicting entities from dataset as there is no particular pattern. This was a time consuming task. Anyways, I have the clean traindata.json and testdata.json with me. Not able to attach json here though. I can share it any other way, if you want. |
@sayalraza could you please send me the clean traindata.json and testdata.json to [email protected]. Thanks in advance. |
@sayalraza as I am working to generalize the model by adding thousands of labeled training data. so I have to take care about entity conflicts otherwise its gonna be really time consuming to clean a json file with 1000 entry |
@sayalraza could you please send me the clean traindata.json and testdata.json to [email protected]. |
Heyy! @sayalraza If you can please send the traindata.json and testdata.json to [email protected] Thank You :) |
@sayalraza hey can you please provide me the cleaned version of traindata.json and testdata.json. this is my email: |
@sayalraza could you please provide the cleaned version of traindata.json and testdata.json. My email: Also what is causing conflict in the json provided. I am getting error as there is a conflict, unable to understand what is that. Thanks in advance |
@sayalraza please could you provide a cleaned version of train data.json for new version of SpaCy model. Email: [email protected] Really really appreciated. |
@sayalraza please could you send the cleaned version to mail: [email protected] |
Have you got the cleaned version? If yes, could you please share it with me as well.TIA! |
In this repo, u have given annotated test data for prediction, but what if the test data is not annotated before hand for prediction. I mean what modifications should be made to take input as a pdf not an annotated json file.
The text was updated successfully, but these errors were encountered: