public class SentenceUtil
extends java.lang.Object
Constructor and Description |
---|
SentenceUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
findPOSInformation(edu.stanford.nlp.pipeline.Annotation document,
java.util.List<java.lang.String> dependenciesList)
returns a list of strings that add tense, number, etc.
|
static java.util.ArrayList<java.lang.String> |
getFullNamedEntities(edu.stanford.nlp.util.CoreMap sentence) |
static void |
main(java.lang.String[] args) |
static java.lang.String |
makeBinaryRelationship(java.lang.String relationship,
java.lang.String argument1,
java.lang.String argument2) |
static void |
printCorefChain(edu.stanford.nlp.pipeline.Annotation document)
Print the coreference link graph
Each chain stores a set of mentions that link to each other,
along with a method for getting the most representative mention
Both sentence and token offsets start at 1!
|
static void |
printSentences(edu.stanford.nlp.pipeline.Annotation document)
Print all the sentences in this document
CoreMap is essentially a Map that uses class objects as keys and
has values with custom types
|
static java.util.ArrayList<java.lang.String> |
toDependenciesList(edu.stanford.nlp.pipeline.Annotation document) |
public static void printSentences(edu.stanford.nlp.pipeline.Annotation document)
public static java.util.ArrayList<java.lang.String> getFullNamedEntities(edu.stanford.nlp.util.CoreMap sentence)
public static void printCorefChain(edu.stanford.nlp.pipeline.Annotation document)
public static java.util.ArrayList<java.lang.String> toDependenciesList(edu.stanford.nlp.pipeline.Annotation document)
public static java.util.List<java.lang.String> findPOSInformation(edu.stanford.nlp.pipeline.Annotation document, java.util.List<java.lang.String> dependenciesList)
public static java.lang.String makeBinaryRelationship(java.lang.String relationship, java.lang.String argument1, java.lang.String argument2)
public static void main(java.lang.String[] args)