public class TypedDependenciesReader extends java.lang.Object implements IReader<java.util.Collection<edu.stanford.nlp.trees.TypedDependency>,java.lang.String>
Modifier and Type | Class and Description |
---|---|
static class |
TypedDependenciesReader.BasicTypedDependency
Basic dependency (bundles GrammaticalRelation annotation, governor head, dependent head)
|
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
typedDependencyPattern1
Pattern for each typed dependency
|
private static java.util.regex.Pattern |
typedDependencyPattern2 |
Constructor and Description |
---|
TypedDependenciesReader()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Test
|
static java.util.List<TypedDependenciesReader.BasicTypedDependency> |
makeBasicTypedDependencies(java.lang.String str)
Make typed dependencies
|
java.util.Collection<edu.stanford.nlp.trees.TypedDependency> |
read(java.lang.String sourceString0)
Read
|
private static final java.util.regex.Pattern typedDependencyPattern1
private static final java.util.regex.Pattern typedDependencyPattern2
public java.util.Collection<edu.stanford.nlp.trees.TypedDependency> read(java.lang.String sourceString0)
IReader
public static java.util.List<TypedDependenciesReader.BasicTypedDependency> makeBasicTypedDependencies(java.lang.String str)
str
- source stringpublic static void main(java.lang.String[] args)
args
- unused