4
주어진 텍스트에서 명명 된 엔티티를 추출하려면 OpenNLP을 사용하고 있습니다. 큰 데이터에서 코드를 실행하는 동안 다음과 같은 오류가 발생합니다. 작은 데이터로 실행하면 정상적으로 작동합니다.NameFinderME 클래스의 OpenNLP를 사용한 Nullpointer 예외
java.lang.NullPointerException
at opennlp.tools.util.Cache.put(Cache.java:134)
at opennlp.tools.util.featuregen.CachedFeatureGenerator.createFeatures(CachedFeatureGenerator.java:71)
at opennlp.tools.namefind.DefaultNameContextGenerator.getContext(DefaultNameContextGenerator.java:116)
at opennlp.tools.namefind.DefaultNameContextGenerator.getContext(DefaultNameContextGenerator.java:39)
at opennlp.tools.util.BeamSearch.bestSequences(BeamSearch.java:125)
at opennlp.tools.util.BeamSearch.bestSequence(BeamSearch.java:198)
at opennlp.tools.namefind.NameFinderME.find(NameFinderME.java:214)
at opennlp.tools.namefind.NameFinderME.find(NameFinderME.java:198)
제발 나를 도와주세요.