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

Errors in plain text processing #1

Open
cneud opened this issue Oct 13, 2016 · 0 comments
Open

Errors in plain text processing #1

cneud opened this issue Oct 13, 2016 · 0 comments
Labels

Comments

@cneud
Copy link
Member

cneud commented Oct 13, 2016

Processing a plain text input file (using either html or bio as output format) fails with the following stacktrace:

java -Xmx800m -jar NerAnnotator-0.0.2-SNAPSHOT-jar-with-dependencies.jar -c text -f html -l fr -m fr=eunews.fr.crf.gz -n 1 test.txt
Container format: text
Loading language model for French fr -> eunews.fr.crf.gz
Done loading classifier
test.txt
Processing TEXT-File test.txt
Trying to process ALTO file file:/c:/ENP/test/test.txt
java.lang.NullPointerException at nl.kbresearch.europeana_newspapers.NerAnnotator.output.HtmlResultHandler.addToken(HtmlResultHandler.java:78) at nl.kbresearch.europeana_newspapers.NerAnnotator.alto.TxtProcessor.handlePotentialTextFile(TxtProcessor.java:83) at nl.kbresearch.europeana_newspapers.NerAnnotator.container.TextProcessor.processFile(TextProcessor.java:37) at nl.kbresearch.europeana_newspapers.NerAnnotator.container.ContainerHandleThread.call(ContainerHandleThread.java:40) at nl.kbresearch.europeana_newspapers.NerAnnotator.container.ContainerHandleThread.call(ContainerHandleThread.java:15) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Total processing time: 8718
0 container documents successfully processed, 1 with errors. There were errors while processing.

@cneud cneud added the bug label Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant