Class | Description |
---|---|
AbstractInputStreamAnnotationCreator |
Creates a stub implementation for creating annotation from
various input sources using InputStream as the main input source
|
AbstractTextAnnotationCreator |
Creates a stub implementation for creating annotation from
various input sources using String as the main input source
|
Annotation |
An annotation representing a span of text in a document.
|
AnnotationIterator |
Helper iterator to read a file with stored annotations
|
AnnotationOutputter |
An interface for outputting CoreNLP Annotations to different output
formats.
|
AnnotationOutputter.Options | |
AnnotationPipeline |
This class is designed to apply multiple Annotators
to an Annotation.
|
AnnotationSerializer | |
AnnotationSerializer.IntermediateEdge | |
AnnotationSerializer.IntermediateNode | |
AnnotationSerializer.IntermediateSemanticGraph | |
AnnotatorImplementations |
A class abstracting the implementation of various annotators.
|
AnnotatorPool |
An object for keeping track of Annotators.
|
ArabicSegmenterAnnotator |
This class will add segmentation information to an Annotation.
|
BinarizerAnnotator |
This annotator takes unbinarized trees (from the parser annotator
or elsewhere) and binarizes them in the attachment.
|
CharniakParserAnnotator |
This class will add parse information to an Annotation from the BLLIP parser.
|
ChineseSegmenterAnnotator |
This class will add segmentation information to an Annotation.
|
ChunkAnnotationUtils |
Utility functions for annotating chunks
|
CleanXmlAnnotator |
An annotator which removes all XML tags (as identified by the
tokenizer) and possibly selectively keeps the text between them.
|
ColumnDataClassifierAnnotator |
This annotator takes a properties file that was used to
train a ColumnDataClassifier and creates an annotator that
classifies the text by loading the classifier and running it.
|
CoNLLOutputter |
Write a subset of our CoreNLP output in CoNLL format.
|
CoNLLUOutputter |
Write a subset of our CoreNLP output in CoNLL-U format.
|
CoNLLUReader |
A class for reading in CoNLL-U data and creating Annotations.
|
CoreDocument |
Wrapper around an annotation representing a document.
|
CoreEntityMention | |
CorefAnnotator |
This class adds coref information to an Annotation.
|
CorefMentionAnnotator |
This class adds mention information to an Annotation.
|
CoreMapAggregator |
Function that aggregates several core maps into one
|
CoreMapAttributeAggregator |
Functions for aggregating token attributes.
|
CoreMapAttributeAggregator.ConcatAggregator | |
CoreMapAttributeAggregator.ConcatCoreMapListAggregator<T extends CoreMap> | |
CoreMapAttributeAggregator.ConcatListAggregator<T> | |
CoreMapAttributeAggregator.ConcatTextAggregator | |
CoreMapAttributeAggregator.MostFreqAggregator | |
CoreNLPProtos | |
CoreNLPProtos.CorefChain |
A coreference chain.
|
CoreNLPProtos.CorefChain.Builder |
A coreference chain.
|
CoreNLPProtos.CorefChain.CorefMention |
Protobuf type
edu.stanford.nlp.pipeline.CorefChain.CorefMention |
CoreNLPProtos.CorefChain.CorefMention.Builder |
Protobuf type
edu.stanford.nlp.pipeline.CorefChain.CorefMention |
CoreNLPProtos.DependencyConverterRequest |
A request for converting constituency trees to dependency graphs
|
CoreNLPProtos.DependencyConverterRequest.Builder |
A request for converting constituency trees to dependency graphs
|
CoreNLPProtos.DependencyConverterResponse |
The result of using the CoreNLP dependency converter.
|
CoreNLPProtos.DependencyConverterResponse.Builder |
The result of using the CoreNLP dependency converter.
|
CoreNLPProtos.DependencyConverterResponse.DependencyConversion |
Protobuf type
edu.stanford.nlp.pipeline.DependencyConverterResponse.DependencyConversion |
CoreNLPProtos.DependencyConverterResponse.DependencyConversion.Builder |
Protobuf type
edu.stanford.nlp.pipeline.DependencyConverterResponse.DependencyConversion |
CoreNLPProtos.DependencyEnhancerRequest |
A protobuf which allows to pass in a document with basic
dependencies to be converted to enhanced
|
CoreNLPProtos.DependencyEnhancerRequest.Builder |
A protobuf which allows to pass in a document with basic
dependencies to be converted to enhanced
|
CoreNLPProtos.DependencyGraph |
A dependency graph representation.
|
CoreNLPProtos.DependencyGraph.Builder |
A dependency graph representation.
|
CoreNLPProtos.DependencyGraph.Edge |
Protobuf type
edu.stanford.nlp.pipeline.DependencyGraph.Edge |
CoreNLPProtos.DependencyGraph.Edge.Builder |
Protobuf type
edu.stanford.nlp.pipeline.DependencyGraph.Edge |
CoreNLPProtos.DependencyGraph.Node |
Protobuf type
edu.stanford.nlp.pipeline.DependencyGraph.Node |
CoreNLPProtos.DependencyGraph.Node.Builder |
Protobuf type
edu.stanford.nlp.pipeline.DependencyGraph.Node |
CoreNLPProtos.Document |
A document; that is, the equivalent of an Annotation.
|
CoreNLPProtos.Document.Builder |
A document; that is, the equivalent of an Annotation.
|
CoreNLPProtos.Entity |
A representation of an entity in a relation.
|
CoreNLPProtos.Entity.Builder |
A representation of an entity in a relation.
|
CoreNLPProtos.EvaluateParserRequest |
A protobuf for calling the java constituency parser evaluator from elsewhere
|
CoreNLPProtos.EvaluateParserRequest.Builder |
A protobuf for calling the java constituency parser evaluator from elsewhere
|
CoreNLPProtos.EvaluateParserRequest.ParseResult |
Protobuf type
edu.stanford.nlp.pipeline.EvaluateParserRequest.ParseResult |
CoreNLPProtos.EvaluateParserRequest.ParseResult.Builder |
Protobuf type
edu.stanford.nlp.pipeline.EvaluateParserRequest.ParseResult |
CoreNLPProtos.EvaluateParserResponse |
Protobuf type
edu.stanford.nlp.pipeline.EvaluateParserResponse |
CoreNLPProtos.EvaluateParserResponse.Builder |
Protobuf type
edu.stanford.nlp.pipeline.EvaluateParserResponse |
CoreNLPProtos.FlattenedParseTree |
A version of ParseTree with a flattened structure so that deep trees
don't exceed the protobuf stack depth
|
CoreNLPProtos.FlattenedParseTree.Builder |
A version of ParseTree with a flattened structure so that deep trees
don't exceed the protobuf stack depth
|
CoreNLPProtos.FlattenedParseTree.Node |
Protobuf type
edu.stanford.nlp.pipeline.FlattenedParseTree.Node |
CoreNLPProtos.FlattenedParseTree.Node.Builder |
Protobuf type
edu.stanford.nlp.pipeline.FlattenedParseTree.Node |
CoreNLPProtos.IndexedWord |
Protobuf type
edu.stanford.nlp.pipeline.IndexedWord |
CoreNLPProtos.IndexedWord.Builder |
Protobuf type
edu.stanford.nlp.pipeline.IndexedWord |
CoreNLPProtos.MapIntString |
A map from integers to strings.
|
CoreNLPProtos.MapIntString.Builder |
A map from integers to strings.
|
CoreNLPProtos.MapStringString |
A map from strings to strings.
|
CoreNLPProtos.MapStringString.Builder |
A map from strings to strings.
|
CoreNLPProtos.Mention |
Protobuf type
edu.stanford.nlp.pipeline.Mention |
CoreNLPProtos.Mention.Builder |
Protobuf type
edu.stanford.nlp.pipeline.Mention |
CoreNLPProtos.MorphologyRequest |
Sent in Morphology requests - a stream of sentences with tagged words
|
CoreNLPProtos.MorphologyRequest.Builder |
Sent in Morphology requests - a stream of sentences with tagged words
|
CoreNLPProtos.MorphologyRequest.TaggedWord |
Protobuf type
edu.stanford.nlp.pipeline.MorphologyRequest.TaggedWord |
CoreNLPProtos.MorphologyRequest.TaggedWord.Builder |
Protobuf type
edu.stanford.nlp.pipeline.MorphologyRequest.TaggedWord |
CoreNLPProtos.MorphologyResponse |
Sent back from the Morphology request - the words and their tags
|
CoreNLPProtos.MorphologyResponse.Builder |
Sent back from the Morphology request - the words and their tags
|
CoreNLPProtos.MorphologyResponse.WordTagLemma |
Protobuf type
edu.stanford.nlp.pipeline.MorphologyResponse.WordTagLemma |
CoreNLPProtos.MorphologyResponse.WordTagLemma.Builder |
Protobuf type
edu.stanford.nlp.pipeline.MorphologyResponse.WordTagLemma |
CoreNLPProtos.NERMention |
An NER mention in the text
|
CoreNLPProtos.NERMention.Builder |
An NER mention in the text
|
CoreNLPProtos.Operator |
A Natural Logic operator
|
CoreNLPProtos.Operator.Builder |
A Natural Logic operator
|
CoreNLPProtos.ParseTree |
A syntactic parse tree, with scores.
|
CoreNLPProtos.ParseTree.Builder |
A syntactic parse tree, with scores.
|
CoreNLPProtos.Polarity |
The polarity of a word, according to Natural Logic
|
CoreNLPProtos.Polarity.Builder |
The polarity of a word, according to Natural Logic
|
CoreNLPProtos.Quote |
A quotation marker in text
|
CoreNLPProtos.Quote.Builder |
A quotation marker in text
|
CoreNLPProtos.Relation |
A representation of a relation, mirroring RelationMention
|
CoreNLPProtos.Relation.Builder |
A representation of a relation, mirroring RelationMention
|
CoreNLPProtos.RelationTriple |
An OpenIE relation triple.
|
CoreNLPProtos.RelationTriple.Builder |
An OpenIE relation triple.
|
CoreNLPProtos.Section |
Protobuf type
edu.stanford.nlp.pipeline.Section |
CoreNLPProtos.Section.Builder |
Protobuf type
edu.stanford.nlp.pipeline.Section |
CoreNLPProtos.SemgrexRequest |
A message for requesting a semgrex
Each sentence stores information about the tokens making up the
corresponding graph
An alternative would have been to use the existing Document or
Sentence classes, but the problem with that is it would be
ambiguous which dependency object to use.
|
CoreNLPProtos.SemgrexRequest.Builder |
A message for requesting a semgrex
Each sentence stores information about the tokens making up the
corresponding graph
An alternative would have been to use the existing Document or
Sentence classes, but the problem with that is it would be
ambiguous which dependency object to use.
|
CoreNLPProtos.SemgrexRequest.Dependencies |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexRequest.Dependencies |
CoreNLPProtos.SemgrexRequest.Dependencies.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexRequest.Dependencies |
CoreNLPProtos.SemgrexResponse |
The response from running a semgrex
If you pass in M semgrex expressions and N dependency graphs,
this returns MxN nested results.
|
CoreNLPProtos.SemgrexResponse.Builder |
The response from running a semgrex
If you pass in M semgrex expressions and N dependency graphs,
this returns MxN nested results.
|
CoreNLPProtos.SemgrexResponse.GraphResult |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.GraphResult |
CoreNLPProtos.SemgrexResponse.GraphResult.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.GraphResult |
CoreNLPProtos.SemgrexResponse.Match |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.Match |
CoreNLPProtos.SemgrexResponse.Match.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.Match |
CoreNLPProtos.SemgrexResponse.NamedEdge |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.NamedEdge |
CoreNLPProtos.SemgrexResponse.NamedEdge.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.NamedEdge |
CoreNLPProtos.SemgrexResponse.NamedNode |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.NamedNode |
CoreNLPProtos.SemgrexResponse.NamedNode.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.NamedNode |
CoreNLPProtos.SemgrexResponse.NamedRelation |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.NamedRelation |
CoreNLPProtos.SemgrexResponse.NamedRelation.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.NamedRelation |
CoreNLPProtos.SemgrexResponse.SemgrexResult |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.SemgrexResult |
CoreNLPProtos.SemgrexResponse.SemgrexResult.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SemgrexResponse.SemgrexResult |
CoreNLPProtos.Sentence |
The serialized version of a CoreMap representing a sentence.
|
CoreNLPProtos.Sentence.Builder |
The serialized version of a CoreMap representing a sentence.
|
CoreNLPProtos.SentenceFragment |
An entailed sentence fragment.
|
CoreNLPProtos.SentenceFragment.Builder |
An entailed sentence fragment.
|
CoreNLPProtos.Span |
A Span of text
|
CoreNLPProtos.Span.Builder |
A Span of text
|
CoreNLPProtos.SpeakerInfo |
Protobuf type
edu.stanford.nlp.pipeline.SpeakerInfo |
CoreNLPProtos.SpeakerInfo.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SpeakerInfo |
CoreNLPProtos.SsurgeonRequest |
A message for processing an Ssurgeon
Each sentence stores information about the tokens making up the
corresponding graph
An alternative would have been to use the existing Document or
Sentence classes, but the problem with that is it would be
ambiguous which dependency object to use.
|
CoreNLPProtos.SsurgeonRequest.Builder |
A message for processing an Ssurgeon
Each sentence stores information about the tokens making up the
corresponding graph
An alternative would have been to use the existing Document or
Sentence classes, but the problem with that is it would be
ambiguous which dependency object to use.
|
CoreNLPProtos.SsurgeonRequest.Ssurgeon |
Protobuf type
edu.stanford.nlp.pipeline.SsurgeonRequest.Ssurgeon |
CoreNLPProtos.SsurgeonRequest.Ssurgeon.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SsurgeonRequest.Ssurgeon |
CoreNLPProtos.SsurgeonResponse |
Protobuf type
edu.stanford.nlp.pipeline.SsurgeonResponse |
CoreNLPProtos.SsurgeonResponse.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SsurgeonResponse |
CoreNLPProtos.SsurgeonResponse.SsurgeonResult |
Protobuf type
edu.stanford.nlp.pipeline.SsurgeonResponse.SsurgeonResult |
CoreNLPProtos.SsurgeonResponse.SsurgeonResult.Builder |
Protobuf type
edu.stanford.nlp.pipeline.SsurgeonResponse.SsurgeonResult |
CoreNLPProtos.Timex |
A Timex object, representing a temporal expression (TIMe EXpression)
These fields are not *really* optional.
|
CoreNLPProtos.Timex.Builder |
A Timex object, representing a temporal expression (TIMe EXpression)
These fields are not *really* optional.
|
CoreNLPProtos.Token |
The serialized version of a Token (a CoreLabel).
|
CoreNLPProtos.Token.Builder |
The serialized version of a Token (a CoreLabel).
|
CoreNLPProtos.TokenLocation |
The index of a token in a document, including the sentence
index and the offset.
|
CoreNLPProtos.TokenLocation.Builder |
The index of a token in a document, including the sentence
index and the offset.
|
CoreNLPProtos.TokensRegexRequest |
It's possible to send in a whole document, but we
only care about the Sentences and Tokens
|
CoreNLPProtos.TokensRegexRequest.Builder |
It's possible to send in a whole document, but we
only care about the Sentences and Tokens
|
CoreNLPProtos.TokensRegexResponse |
The result will be a nested structure:
repeated PatternMatch, one for each pattern
each PatternMatch has a repeated Match,
which tells you which sentence matched and where
|
CoreNLPProtos.TokensRegexResponse.Builder |
The result will be a nested structure:
repeated PatternMatch, one for each pattern
each PatternMatch has a repeated Match,
which tells you which sentence matched and where
|
CoreNLPProtos.TokensRegexResponse.Match |
Protobuf type
edu.stanford.nlp.pipeline.TokensRegexResponse.Match |
CoreNLPProtos.TokensRegexResponse.Match.Builder |
Protobuf type
edu.stanford.nlp.pipeline.TokensRegexResponse.Match |
CoreNLPProtos.TokensRegexResponse.MatchLocation |
Protobuf type
edu.stanford.nlp.pipeline.TokensRegexResponse.MatchLocation |
CoreNLPProtos.TokensRegexResponse.MatchLocation.Builder |
Protobuf type
edu.stanford.nlp.pipeline.TokensRegexResponse.MatchLocation |
CoreNLPProtos.TokensRegexResponse.PatternMatch |
Protobuf type
edu.stanford.nlp.pipeline.TokensRegexResponse.PatternMatch |
CoreNLPProtos.TokensRegexResponse.PatternMatch.Builder |
Protobuf type
edu.stanford.nlp.pipeline.TokensRegexResponse.PatternMatch |
CoreNLPProtos.TsurgeonRequest |
A protobuf for running Tsurgeon operations on constituency trees
|
CoreNLPProtos.TsurgeonRequest.Builder |
A protobuf for running Tsurgeon operations on constituency trees
|
CoreNLPProtos.TsurgeonRequest.Operation |
Protobuf type
edu.stanford.nlp.pipeline.TsurgeonRequest.Operation |
CoreNLPProtos.TsurgeonRequest.Operation.Builder |
Protobuf type
edu.stanford.nlp.pipeline.TsurgeonRequest.Operation |
CoreNLPProtos.TsurgeonResponse |
The results of the Tsurgeon operation
|
CoreNLPProtos.TsurgeonResponse.Builder |
The results of the Tsurgeon operation
|
CoreQuote |
Wrapper around a CoreMap representing a quote.
|
CoreSentence | |
CustomAnnotationSerializer |
Serializes Annotation objects using our own format.
|
DefaultPaths |
Default model paths for StanfordCoreNLP
All these paths point to files distributed with the model jar file (stanford-corenlp-models-*.jar)
|
DependencyParseAnnotator |
This class adds dependency parse information to an Annotation.
|
DeterministicCorefAnnotator |
Implements the Annotator for the new deterministic coreference resolution system.
|
DocDateAnnotator |
Find and record a document (authoring) date for a document.
|
EntityMentionsAnnotator |
Annotator that marks entity mentions in a document.
|
EPEOutputter |
Output dependency annotations in the format for the EPE task
at Depling 2017.
|
GenderAnnotator |
This class adds gender information (MALE / FEMALE) to entity mentions as GenderAnnotations.
|
GenericAnnotationSerializer |
Serializes Annotation objects using the default Java serializer
|
GenericAnnotationSerializer.AppendingObjectOutputStream |
Turns out, an ObjectOutputStream cannot append to a file.
|
GenericWebServiceAnnotator |
A simple web service annotator that can be defined through properties:
annotatorEndpoint: a URL endpoint for annotator the service
annotatorRequires: Requirements for the annotator
annotatorProvides: Annotations provided by the annotator
annotatorStartCommand: command line and arguments to start the service.
|
HybridCorefAnnotator | |
InlineXMLOutputter |
Outputter for printing NER/Entity Mention annotations in inlineXML style.
|
JSONAnnotationReader |
Reads annotations output put by JSONOutputter
As JSONOutputter is not lossless, this reader will only read what is saved.
|
JSONOutputter |
Output an Annotation to human readable JSON.
|
JSONOutputter.JSONWriter |
Our very own little JSON writing class.
|
KBPAnnotator |
An annotator which takes as input sentences, and produces KBP relation annotations.
|
LabeledChunkIdentifier |
Identifies chunks based on labels that uses IOB-like encoding
(Erik F.
|
LabeledChunkIdentifier.LabelTagType |
Class representing a label, tag and type.
|
LanguageInfo |
This class contains mappings from strings to language properties files.
|
MorphaAnnotator |
This class will add the lemmas of all the words to the Annotation.
|
MWTAnnotator |
An Annotator for splitting tokens into words based on a dictionary, rules, or a statistical model.
|
NERCombinerAnnotator |
This class will add NER information to an Annotation using a combination of NER models.
|
NERCombinerAnnotator.TokenMergeCountAnnotation |
Helper class for aligning merged tokens and original tokens, stores number of merged tokens
this merged token contains (e.g.
|
NumberAnnotator |
This calls NumberSequenceClassifier, which is a rule based classifier, which
adds a NUMBER entity tag to numbers not already given another entity tag, and
also has additional rules for marking MONEY, TIME, and DATE.
|
ParserAnnotator |
This class will add parse information to an Annotation.
|
ParserAnnotatorUtils | |
POSTaggerAnnotator |
Wrapper for the maxent part of speech tagger.
|
ProtobufAnnotationSerializer |
A serializer using Google's protocol buffer format.
|
QuantifiableEntityNormalizingAnnotator |
This class provides a facility for normalizing content of numerical named
entities (number, money, date, time) in the pipeline package world.
|
QuoteAnnotator |
An annotator which picks quotations out of the given text.
|
QuoteAttributionAnnotator |
This annotator connects quotes in a text to their speakers.
|
QuoteAttributionAnnotator.CanonicalMentionAnnotation | |
QuoteAttributionAnnotator.CanonicalMentionBeginAnnotation | |
QuoteAttributionAnnotator.CanonicalMentionEndAnnotation | |
QuoteAttributionAnnotator.MentionAnnotation | |
QuoteAttributionAnnotator.MentionBeginAnnotation | |
QuoteAttributionAnnotator.MentionEndAnnotation | |
QuoteAttributionAnnotator.MentionSieveAnnotation | |
QuoteAttributionAnnotator.MentionTypeAnnotation | |
QuoteAttributionAnnotator.SpeakerAnnotation | |
QuoteAttributionAnnotator.SpeakerSieveAnnotation | |
RegexNERAnnotator |
This class adds NER information to an annotation using the RegexNERSequenceClassifier.
|
RelationExtractorAnnotator |
Annotating relations between entities produced by the NER system.
|
SentenceAnnotator |
A parent class for annotators which might want to analyze one
sentence at a time, possibly in a multithreaded manner.
|
SentimentAnnotator |
This annotator attaches a binarized tree with sentiment annotations
to each sentence.
|
SerializedAnnotationCreator |
Reads from serialized annotations
|
ServerAnnotatorImplementations |
A set of annotator implementations, backed by the server
(
StanfordCoreNLPServer ). |
StanfordCoreNLP |
This is a pipeline that takes in a string and returns various analyzed
linguistic forms.
|
StanfordCoreNLP.AnnotatorSignature |
An annotator name and its associated signature.
|
StanfordCoreNLPClient |
An annotation pipeline in spirit identical to
StanfordCoreNLP , but
with the backend supported by a web server. |
StanfordCoreNLPServer |
This class creates a server that runs a new Java annotator in each thread.
|
StanfordCoreNLPServer.FileHandler |
Serve a file from the filesystem or classpath
|
StanfordCoreNLPServer.FinishedRequest |
A callback object that lets us hook into the result of an annotation request.
|
StanfordCoreNLPServer.LiveHandler |
A handler to let the caller know if the server is alive,
but not necessarily ready to respond to requests.
|
StanfordCoreNLPServer.PingHandler |
A simple ping test.
|
StanfordCoreNLPServer.ReadyHandler |
A handler to let the caller know if the server is alive AND ready to respond to requests.
|
StatTokSentAnnotator |
This class performs the hybrid tokenization of the input.
|
TaggedTextOutputter |
Outputs document back into text format, with tags added if available.
|
TextAnnotationCreator |
Creates an annotation from text
|
TextOutputter | |
TokenizerAnnotator |
This class will PTB tokenize the input.
|
TokensRegexAnnotator |
Uses TokensRegex patterns to annotate tokens.
|
TokensRegexAnnotator.Options | |
TokensRegexNERAnnotator |
TokensRegexNERAnnotator labels tokens with types based on a simple manual mapping from
regular expressions to the types of the entities they are meant to describe.
|
TrueCaseAnnotator | |
UDFeatureAnnotator |
Extracts universal dependencies features from a tree
|
WebServiceAnnotator |
A common base class for annotators that talk to other web servers.
|
WikidictAnnotator |
An annotator for entity linking to Wikipedia pages via the Wikidict.
|
WordsToSentencesAnnotator |
This class assumes that there is a
List<CoreLabel> under the TokensAnnotation field,
and runs it through WordToSentenceProcessor
and puts the new List<Annotation> under the SentencesAnnotation field. |
XMLOutputter |
An outputter to XML format.
|
Enum | Description |
---|---|
CoreNLPProtos.DependencyEnhancerRequest.RefCase | |
CoreNLPProtos.FlattenedParseTree.Node.ContentsCase | |
CoreNLPProtos.Language |
An enumeration for the valid languages allowed in CoreNLP
|
CoreNLPProtos.NaturalLogicRelation |
The seven informative Natural Logic relations
|
CoreNLPProtos.Sentiment |
An enumeration of valid sentiment values for the sentiment classifier.
|
LanguageInfo.HumanLanguage |
languages supported
|
StanfordCoreNLP.OutputFormat | |
TokenizerAnnotator.TokenizerType |
Enum to identify the different TokenizerTypes.
|
Exception | Description |
---|---|
ProtobufAnnotationSerializer.LossySerializationException |
An exception to denote that the serialization would be lossy.
|
WebServiceAnnotator.PermanentlyFailedException |
An exception thrown if we could not connect to the server, and shouldn't retry / recreate the server.
|
WebServiceAnnotator.ShouldRetryException |
Thrown if we could not annotate, but there's hope to either reconnect or restart the server.
|
TextAnnotation.class
). They should also specify what they add
to the annotation, and where.
public void testPipeline(String text) throws Exception { // create pipeline AnnotationPipeline pipeline = new AnnotationPipeline(); pipeline.addAnnotator(new TokenizerAnnotator(false, "en")); pipeline.addAnnotator(new WordsToSentencesAnnotator(false)); pipeline.addAnnotator(new POSTaggerAnnotator(false)); pipeline.addAnnotator(new MorphaAnnotator(false)); pipeline.addAnnotator(new NERCombinerAnnotator(false)); pipeline.addAnnotator(new ParserAnnotator(false, -1)); // create annotation with text Annotation document = new Annotation(text); // annotate text with pipeline pipeline.annotate(document); // demonstrate typical usage for (CoreMap sentence: document.get(CoreAnnotations.SentencesAnnotation.class)) { // get the tree for the sentence Tree tree = sentence.get(TreeAnnotation.class); // get the tokens for the sentence and iterate over them for (CoreLabel token: sentence.get(CoreAnnotations.TokensAnnotation.class)) { // get token attributes String tokenText = token.get(TextAnnotation.class); String tokenPOS = token.get(PartOfSpeechAnnotation.class); String tokenLemma = token.get(LemmaAnnotation.class); String tokenNE = token.get(NamedEntityTagAnnotation.class); } } }
./bin/stanfordcorenlp.shor
java -cp stanford-corenlp-YYYY-MM-DD.jar:stanford-corenlp-YYYY-MM-DD-models.jar:xom.jar:joda-time.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP [ -props YOUR_CONFIGURATION_FILE ] -file YOUR_INPUT_FILEwhere the following properties are defined: (if
-props
or annotators
is not defined, default properties will be loaded via the classpath)
"annotators" - comma separated list of annotators The following annotators are supported: tokenize, ssplit, pos, lemma, ner, truecase, parse, dcoref, nflMore information is available here: Stanford CoreNLP