public class SentenceUtil extends Object
| Constructor and Description |
|---|
SentenceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
findPOSInformation(List<edu.stanford.nlp.ling.CoreLabel> tokens,
List<String> dependenciesList)
returns a list of strings that add tense, number, etc.
|
static ArrayList<String> |
getFullNamedEntities(edu.stanford.nlp.util.CoreMap sentence) |
static edu.stanford.nlp.util.CoreMap |
getLastSentence(edu.stanford.nlp.pipeline.Annotation document) |
static void |
main(String[] args) |
static String |
makeBinaryRelationship(String relationship,
String argument1,
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 ArrayList<String> |
toDependenciesList(edu.stanford.nlp.pipeline.Annotation document) |
static ArrayList<String> |
toDependenciesList(List<edu.stanford.nlp.util.CoreMap> sentences) |
public static void printSentences(edu.stanford.nlp.pipeline.Annotation document)
public static ArrayList<String> getFullNamedEntities(edu.stanford.nlp.util.CoreMap sentence)
public static void printCorefChain(edu.stanford.nlp.pipeline.Annotation document)
public static List<String> findPOSInformation(List<edu.stanford.nlp.ling.CoreLabel> tokens, List<String> dependenciesList)
public static String makeBinaryRelationship(String relationship, String argument1, String argument2)
public static edu.stanford.nlp.util.CoreMap getLastSentence(edu.stanford.nlp.pipeline.Annotation document)
public static ArrayList<String> toDependenciesList(edu.stanford.nlp.pipeline.Annotation document)
public static ArrayList<String> toDependenciesList(List<edu.stanford.nlp.util.CoreMap> sentences)
public static void main(String[] args)
Copyright © 2015. All rights reserved.