public class ServerAnnotatorImplementations extends AnnotatorImplementations
StanfordCoreNLPServer
).Modifier and Type | Field and Description |
---|---|
java.lang.String |
host
The hostname of the server to hit
|
java.lang.String |
key
The key to use as the username to authenticate with the server, or null.
|
boolean |
lazy
If false, run many common annotations when we hit the server the first time.
|
int |
port
The port to hit on the server
|
java.lang.String |
secret
The secret key to use as the username to authenticate with the server, or null.
|
Constructor and Description |
---|
ServerAnnotatorImplementations(java.lang.String host,
int port)
Create a new annotator implementation backed by
StanfordCoreNLPServer . |
ServerAnnotatorImplementations(java.lang.String host,
int port,
java.lang.String key,
java.lang.String secret,
boolean lazy)
Create a new annotator implementation backed by
StanfordCoreNLPServer . |
Modifier and Type | Method and Description |
---|---|
Annotator |
coref(java.util.Properties properties)
Annotate for coreference (statistical or hybrid)
|
Annotator |
corefMention(java.util.Properties properties)
Annotate for mention (statistical or hybrid)
|
Annotator |
dcoref(java.util.Properties properties)
Annotate for coreference (deterministic)
|
Annotator |
dependencies(java.util.Properties properties)
Annotate dependency relations in sentences
|
Annotator |
gender(java.util.Properties properties,
java.lang.String name)
Annotate for gender of tokens
|
Annotator |
kbp(java.util.Properties properties)
Annotate for KBP relations
|
Annotator |
link(java.util.Properties properties) |
Annotator |
ner(java.util.Properties properties)
Annotate for named entities -- note that this combines multiple NER tag sets, and some auxiliary things (like temporal tagging)
|
Annotator |
openie(java.util.Properties properties)
Annotate
RelationTriple s from text. |
Annotator |
parse(java.util.Properties properties)
Annotate parse trees
|
Annotator |
posTagger(java.util.Properties properties)
Part of speech tag
|
Annotator |
relations(java.util.Properties properties)
Annotate for relations expressed in sentences
|
Annotator |
sentiment(java.util.Properties properties,
java.lang.String name)
Annotate for sentiment in sentences
|
Annotator |
tokensRegexNER(java.util.Properties properties,
java.lang.String name)
Run RegexNER -- rule-based NER based on a deterministic mapping file
|
Annotator |
trueCase(java.util.Properties properties)
Infer the original casing of tokens
|
cdcTokenizer, cleanXML, columnData, custom, docDate, entityMentions, morpha, multiWordToken, natlog, quote, quoteattribution, tokenizer, tokensregex, udfeats, wordToSentences
public final java.lang.String host
public final int port
public final java.lang.String key
public final java.lang.String secret
public final boolean lazy
public ServerAnnotatorImplementations(java.lang.String host, int port, java.lang.String key, java.lang.String secret, boolean lazy)
StanfordCoreNLPServer
.host
- The hostname of the server.port
- The port of the server.public ServerAnnotatorImplementations(java.lang.String host, int port)
StanfordCoreNLPServer
.host
- The hostname of the server.port
- The port of the server.public Annotator posTagger(java.util.Properties properties)
posTagger
in class AnnotatorImplementations
public Annotator ner(java.util.Properties properties)
ner
in class AnnotatorImplementations
public Annotator tokensRegexNER(java.util.Properties properties, java.lang.String name)
tokensRegexNER
in class AnnotatorImplementations
public Annotator gender(java.util.Properties properties, java.lang.String name)
gender
in class AnnotatorImplementations
public Annotator parse(java.util.Properties properties)
parse
in class AnnotatorImplementations
properties
- Properties that control the behavior of the parser. It use "parse.x" properties.public Annotator trueCase(java.util.Properties properties)
trueCase
in class AnnotatorImplementations
public Annotator corefMention(java.util.Properties properties)
corefMention
in class AnnotatorImplementations
public Annotator coref(java.util.Properties properties)
coref
in class AnnotatorImplementations
public Annotator dcoref(java.util.Properties properties)
dcoref
in class AnnotatorImplementations
public Annotator relations(java.util.Properties properties)
relations
in class AnnotatorImplementations
public Annotator sentiment(java.util.Properties properties, java.lang.String name)
sentiment
in class AnnotatorImplementations
public Annotator dependencies(java.util.Properties properties)
dependencies
in class AnnotatorImplementations
public Annotator openie(java.util.Properties properties)
RelationTriple
s from text.openie
in class AnnotatorImplementations
public Annotator kbp(java.util.Properties properties)
kbp
in class AnnotatorImplementations
public Annotator link(java.util.Properties properties)
link
in class AnnotatorImplementations