objectionary / objectionary/lints
`LtTestNotVerb` (with `POSTaggerME`) lint is not thread-safe
Open
@h1alexbel is already working on this.
Since Feb 3, 2025.
bug
- Dominant language
- Java
- Stars
- 14
- Forks
- 39
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 90
Description
I'm running this code in many threads
new Program(xmir).defects()
This is the stack trace:
Caused by: java.lang.NullPointerException: Cannot invoke "opennlp.tools.util.Sequence.getOutcomes()" because "this.bestSequence" is null
at opennlp.tools.postag.POSTaggerME.tag(POSTaggerME.java:150)
at opennlp.tools.postag.POSTaggerME.tag(POSTaggerME.java:144)
at org.eolang.lints.misc.LtTestNotVerb.defects(LtTestNotVerb.java:99)
at org.eolang.lints.misc.LtTestNotVerb.defects(LtTestNotVerb.java:58)
at org.eolang.lints.Program.defects(Program.java:105)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.