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
RelationTriples 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, wordToSentencespublic 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 AnnotatorImplementationspublic Annotator ner(java.util.Properties properties)
ner in class AnnotatorImplementationspublic Annotator tokensRegexNER(java.util.Properties properties, java.lang.String name)
tokensRegexNER in class AnnotatorImplementationspublic Annotator gender(java.util.Properties properties, java.lang.String name)
gender in class AnnotatorImplementationspublic Annotator parse(java.util.Properties properties)
parse in class AnnotatorImplementationsproperties - Properties that control the behavior of the parser. It use "parse.x" properties.public Annotator trueCase(java.util.Properties properties)
trueCase in class AnnotatorImplementationspublic Annotator corefMention(java.util.Properties properties)
corefMention in class AnnotatorImplementationspublic Annotator coref(java.util.Properties properties)
coref in class AnnotatorImplementationspublic Annotator dcoref(java.util.Properties properties)
dcoref in class AnnotatorImplementationspublic Annotator relations(java.util.Properties properties)
relations in class AnnotatorImplementationspublic Annotator sentiment(java.util.Properties properties, java.lang.String name)
sentiment in class AnnotatorImplementationspublic Annotator dependencies(java.util.Properties properties)
dependencies in class AnnotatorImplementationspublic Annotator openie(java.util.Properties properties)
RelationTriples from text.openie in class AnnotatorImplementationspublic Annotator kbp(java.util.Properties properties)
kbp in class AnnotatorImplementationspublic Annotator link(java.util.Properties properties)
link in class AnnotatorImplementations