Richard Zowalla created OPENNLP-1785:
----------------------------------------
Summary: ParserConfigurationException on Android due to
unsupported feature set
Key: OPENNLP-1785
URL: https://issues.apache.org/jira/browse/OPENNLP-1785
Project: OpenNLP
Issue Type: Bug
Reporter: Richard Zowalla
Fix For: 2.5.7, 3.0.0
Hello! When trying to use POSTagger on Android, a ParserConfigurationException
is thrown when OpenNLP tries to create a DocumentBuilder. It's thrown when the
XML secure processing feature is set. I looked into it, and found out that the
feature is not supported on Android.
You can view the comment saying it's not supported in the Android source code
here:
https://cs.android.com/android/platform/superproject/main/+/main:libcore/luni/src/main/java/javax/xml/parsers/DocumentBuilderFactory.java;l=310-312
I added ignoring the exception when setting that feature so the POSTagger works
on Android. I tested it and it now works well.
see https://github.com/apache/opennlp/pull/892
--
This message was sent by Atlassian Jira
(v8.20.10#820010)