本文整理匯總了Java中org.apache.uima.util.CasPool類的典型用法代碼示例。如果您正苦於以下問題:Java CasPool類的具體用法?Java CasPool怎麽用?Java CasPool使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CasPool類屬於org.apache.uima.util包,在下文中一共展示了CasPool類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: UimaResource
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public UimaResource(AnalysisEngine analysisEngine) throws ResourceInitializationException {
this.analysisEngine = analysisEngine;
this.casPool = new CasPool(Runtime.getRuntime().availableProcessors() * 10, analysisEngine);
}
示例2: getCasPool
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public CasPool getCasPool() {
return casPool;
}
示例3: setCasPool
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public void setCasPool(CasPool casPool) {
this.casPool = casPool;
}
示例4: UimaResource
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public UimaResource(AnalysisEngine analysisEngine) throws ResourceInitializationException {
this.analysisEngine = analysisEngine;
this.casPool = new CasPool(Runtime.getRuntime().availableProcessors() * 10,analysisEngine);
}
示例5: getCasPool
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public CasPool getCasPool() {
return casPool;
}
示例6: setCasPool
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public void setCasPool(CasPool casPool) {
this.casPool = casPool;
}
示例7: TreeParser
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public TreeParser(AnalysisEngine parser, AnalysisEngine tokenizer, CasPool pool) {
this.parser = parser;
this.tokenizer = tokenizer;
this.pool = pool;
tf = new UimaTokenizerFactory(tokenizer, true);
}
示例8: UimaResource
import org.apache.uima.util.CasPool; //導入依賴的package包/類
public UimaResource(AnalysisEngine analysisEngine) throws ResourceInitializationException {
this.analysisEngine = analysisEngine;
this.casPool = new CasPool(Runtime.getRuntime().availableProcessors(), analysisEngine);
}