You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue when using the VnCoreNLP wrapper in the py_vncorenlp package. The error occurs specifically when the annotators list contains "wseg". The initialization fails with a java.lang.ArrayIndexOutOfBoundsException.
Steps to Reproduce:
Initialize a VnCoreNLP object with the annotators list containing "wseg":
I encountered an issue when using the
VnCoreNLP
wrapper in thepy_vncorenlp
package. The error occurs specifically when the annotators list contains"wseg"
. The initialization fails with ajava.lang.ArrayIndexOutOfBoundsException
.Steps to Reproduce:
VnCoreNLP
object with the annotators list containing"wseg"
:Expected Behavior:
The
VnCoreNLP
object should initialize without errors, regardless of whether"wseg"
is in the annotators list.Actual Behavior:
When
"wseg"
is included in the annotators list, the following exception is raised:Environment:
Additional Context:
"wseg"
is included in the annotators list."pos"
,"ner"
, and"parse"
work as expected without throwing an error."wseg"
.It seems like there might be an issue with how the
wseg
annotator is being handled internally within the Java code.Possible Solutions:
"wseg"
annotator in the Java classvn.pipeline.VnCoreNLP
and ensure the correct indexing or initialization logic.Related Issues/PRs:
(None at the moment)
The text was updated successfully, but these errors were encountered: