public class LexicalAnalyzerPipeline extends Pipeline<String,List<IWord>,List<IWord>> implements LexicalAnalyzer
| Constructor and Description |
|---|
LexicalAnalyzerPipeline(LexicalAnalyzer analyzer) |
LexicalAnalyzerPipeline(LexicalAnalyzerPipe analyzer) |
LexicalAnalyzerPipeline(Pipe<String,List<IWord>> first,
Pipe<List<IWord>,List<IWord>> last) |
| Modifier and Type | Method and Description |
|---|---|
Sentence |
analyze(String sentence)
对句子进行词法分析
|
LexicalAnalyzer |
getAnalyzer()
获取代理的词法分析器
|
NERTagSet |
getNERTagSet() |
String[] |
recognize(String[] wordArray,
String[] posArray)
命名实体识别
|
List<String> |
segment(String sentence)
中文分词
|
void |
segment(String sentence,
String normalized,
List<String> wordList) |
String[] |
tag(List<String> wordList)
词性标注
|
String[] |
tag(String... words)
词性标注
|
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, flow, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArrayclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic LexicalAnalyzerPipeline(Pipe<String,List<IWord>> first, Pipe<List<IWord>,List<IWord>> last)
public LexicalAnalyzerPipeline(LexicalAnalyzer analyzer)
public LexicalAnalyzerPipeline(LexicalAnalyzerPipe analyzer)
public LexicalAnalyzer getAnalyzer()
public List<String> segment(String sentence)
Segmenterpublic String[] recognize(String[] wordArray, String[] posArray)
NERecognizerrecognize in interface NERecognizerwordArray - 单词posArray - 词性public NERTagSet getNERTagSet()
getNERTagSet in interface NERecognizerpublic Sentence analyze(String sentence)
LexicalAnalyzeranalyze in interface LexicalAnalyzersentence - 纯文本句子Copyright © 2014–2021 码农场. All rights reserved.