Java Code Examples for org.ansj.util.MyStaticValue#isRealName()
The following examples show how to use
org.ansj.util.MyStaticValue#isRealName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Analysis.java From deeplearning4j with Apache License 2.0 | 5 votes |
protected Analysis() { this.forests = new Forest[] {DicLibrary.get()}; this.isNameRecognition = MyStaticValue.isNameRecognition; this.isNumRecognition = MyStaticValue.isNumRecognition; this.isQuantifierRecognition = MyStaticValue.isQuantifierRecognition; this.isRealName = MyStaticValue.isRealName; }
Example 2
Source File: Analysis.java From deeplearning4j with Apache License 2.0 | 5 votes |
/** * 将为标准化的词语设置到分词中 * * @param gp * @param result */ protected void setRealName(Graph graph, List<Term> result) { if (!MyStaticValue.isRealName) { return; } String str = graph.realStr; for (Term term : result) { term.setRealName(str.substring(term.getOffe(), term.getOffe() + term.getName().length())); } }