5
我正在嘗試將OpenNLP的自定義特徵生成用於Named Finder API。OpenNLP Namefinder中的自定義特徵生成API
http://opennlp.apache.org/documentation/1.5.3/manual/opennlp.html
我通過文件去,但我無法理解如何指定不同的特點。
它只是說:
AdaptiveFeatureGenerator featureGenerator = new CachedFeatureGenerator(
new AdaptiveFeatureGenerator[]{
new WindowFeatureGenerator(new TokenFeatureGenerator(), 2, 2),
new WindowFeatureGenerator(new TokenClassFeatureGenerator(true), 2, 2),
new OutcomePriorFeatureGenerator(),
new PreviousMapFeatureGenerator(),
new BigramNameFeatureGenerator(),
new SentenceFeatureGenerator(true, false)
});
但你如何實際使用這些不同功能的發電機,以創建自己的自定義功能。有人可以發佈定義這些特徵生成器的示例代碼,我們如何將其用於自定義特徵生成。感謝預期。
我也堅持相同。你能解決這個問題嗎? – 2013-03-26 13:23:15