-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I included PaodingTokeizr into classifier4J to make it supportive for Chinese,
following this:
http://www.cnblogs.com/chenying99/archive/2013/07/12/3185379.html
And I got this exception: java.lang.IllegalArgumentException:
This AttributeSource does not have the attribute
'org.apache.lucene.analysis.tokenattributes.TermAttribute'.
at org.apache.lucene.util.AttributeSource.getAttribute(AttributeSource.java:265)
at net.sf.classifier4J.PaodingTokenizer.tokenize(PaodingTokenizer.java:24)
at net.sf.classifier4J.Utilities.getWordFrequency(Utilities.java:102)
at net.sf.classifier4J.Utilities.getWordFrequency(Utilities.java:82)
at net.sf.classifier4J.Utilities.getWordFrequency(Utilities.java:77)
at net.sf.classifier4J.summariser.SimpleSummariser.summarise(SimpleSummariser.java:82)
My version: paoding-analysis-2.0.4-beta, lucene-core-3.0.0
I don't know what attribute the exception refers. Is this about the .properties
files?
Original issue reported on code.google.com by helenf...@gmail.com on 23 Sep 2013 at 1:02
Reactions are currently unavailable