public class NullDocumentFactory extends java.lang.Object implements IDocumentFactory
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
text |
Constructor and Description |
---|
NullDocumentFactory() |
Modifier and Type | Method and Description |
---|---|
AAnalysis |
getAnalysis(int sentenceIdx)
Get (sentence) analysis artifact
|
ACoreferences |
getCoreferences()
Get coreferences artifact
|
java.util.List<Entailment> |
getEntailments(int sentenceIdx)
Get entailments
|
AGrammaticalStructure |
getGrammaticalStructure(int sentenceIdx)
Get grammatical structure artifact
|
ANamedEntities |
getNamedEntities(int sentenceIdx)
Get named entities artifact
|
AParseTree |
getParseTree(int sentenceIdx)
Get parse artifact
|
APartsOfSpeech |
getPoses(int sentenceIdx)
Get parts-of-speech artifact
|
ARelationDependents |
getRelationDependents(int sentenceIdx)
Get relation dependents artifact
|
java.lang.String |
getReport(int sentenceIdx,
boolean xmlFlag)
Get (sentence) analysis string
|
java.lang.String[] |
getReports(int sentenceIdx,
boolean xmlFlag)
Get (sentence) analysis strings
|
ASemanticGraph |
getSemanticGraph(int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode)
Get semantic graph artifact
|
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> |
getSemanticGraphs(int sentenceIdx)
Get semantic graph artifacts
|
int |
getSentenceCount()
Get sentence count
|
java.util.List<SentenceSegment> |
getSentences()
Get sentences
|
Sentiment |
getSentiment(int sentenceIdx)
Get sentiment
|
TypedDependencyMode[] |
getSupportedModes()
Get supported typed dependency modes
|
TypedDependencyProvider[] |
getSupportedProviders()
Get supported typed dependency providers
|
java.lang.String |
getText()
Get text
|
ATextAnalysis |
getTextAnalysis(TypedDependencyProvider provider,
TypedDependencyMode mode)
Get text analysis
|
java.lang.String |
getTextReport(TypedDependencyProvider provider,
TypedDependencyMode mode,
boolean xmlFlag)
Get (text) analysis string
|
java.lang.String[] |
getTextReports(TypedDependencyProvider provider,
TypedDependencyMode mode,
boolean xmlFlag)
Get (text) analysis strings
|
java.util.List<Token> |
getTokens(int sentenceIdx)
Get tokens
|
java.util.List<Triple> |
getTriples(int sentenceIdx)
Get triples
|
java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> |
getTypedDependencies(int sentenceIdx)
Get typed dependencies artifact
|
ATypedDependencies |
getTypedDependencies(int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode)
Get typed dependencies artifact
|
java.util.List<WordSegment> |
getWords()
Get words
|
boolean |
init(java.lang.String text)
Init processing
|
public boolean init(java.lang.String text)
IDocumentFactory
init
in interface IDocumentFactory
text
- input textpublic java.lang.String getText() throws java.lang.RuntimeException
IDocumentFactoryService
getText
in interface IDocumentFactoryService
java.lang.RuntimeException
public java.util.List<WordSegment> getWords() throws java.lang.RuntimeException
IDocumentFactoryService
getWords
in interface IDocumentFactoryService
java.lang.RuntimeException
public java.util.List<SentenceSegment> getSentences() throws java.lang.RuntimeException
IDocumentFactoryService
getSentences
in interface IDocumentFactoryService
java.lang.RuntimeException
public int getSentenceCount() throws java.lang.RuntimeException
IDocumentFactoryService
getSentenceCount
in interface IDocumentFactoryService
java.lang.RuntimeException
public java.util.List<Token> getTokens(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getTokens
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
- runtime exceptionpublic AParseTree getParseTree(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getParseTree
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public APartsOfSpeech getPoses(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getPoses
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public AGrammaticalStructure getGrammaticalStructure(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getGrammaticalStructure
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public ARelationDependents getRelationDependents(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getRelationDependents
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public ATypedDependencies getTypedDependencies(int sentenceIdx, TypedDependencyProvider provider, TypedDependencyMode mode) throws java.lang.RuntimeException
IDocumentFactoryService
getTypedDependencies
in interface IDocumentFactoryService
sentenceIdx
- sentence indexprovider
- typed dependency providermode
- typed dependency modejava.lang.RuntimeException
public java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> getTypedDependencies(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getTypedDependencies
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public ASemanticGraph getSemanticGraph(int sentenceIdx, TypedDependencyProvider provider, TypedDependencyMode mode) throws java.lang.RuntimeException
IDocumentFactoryService
getSemanticGraph
in interface IDocumentFactoryService
sentenceIdx
- sentence indexprovider
- typed dependency providermode
- typed dependency modejava.lang.RuntimeException
public java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> getSemanticGraphs(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getSemanticGraphs
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public ANamedEntities getNamedEntities(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getNamedEntities
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public Sentiment getSentiment(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getSentiment
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public java.util.List<Entailment> getEntailments(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getEntailments
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public java.util.List<Triple> getTriples(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getTriples
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public ACoreferences getCoreferences() throws java.lang.RuntimeException
IDocumentFactoryService
getCoreferences
in interface IDocumentFactoryService
java.lang.RuntimeException
public AAnalysis getAnalysis(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryService
getAnalysis
in interface IDocumentFactoryService
sentenceIdx
- sentence indexjava.lang.RuntimeException
public ATextAnalysis getTextAnalysis(TypedDependencyProvider provider, TypedDependencyMode mode) throws java.lang.RuntimeException
IDocumentFactoryService
getTextAnalysis
in interface IDocumentFactoryService
provider
- providermode
- modejava.lang.RuntimeException
public java.lang.String getReport(int sentenceIdx, boolean xmlFlag) throws java.lang.RuntimeException
IDocumentFactoryService
getReport
in interface IDocumentFactoryService
sentenceIdx
- sentence indexxmlFlag
- XML format requestedjava.lang.RuntimeException
public java.lang.String[] getReports(int sentenceIdx, boolean xmlFlag) throws java.lang.RuntimeException
IDocumentFactoryService
getReports
in interface IDocumentFactoryService
sentenceIdx
- sentence indexxmlFlag
- XML format requestedjava.lang.RuntimeException
public java.lang.String getTextReport(TypedDependencyProvider provider, TypedDependencyMode mode, boolean xmlFlag) throws java.lang.RuntimeException
IDocumentFactoryService
getTextReport
in interface IDocumentFactoryService
provider
- providermode
- modexmlFlag
- XML format requestedjava.lang.RuntimeException
public java.lang.String[] getTextReports(TypedDependencyProvider provider, TypedDependencyMode mode, boolean xmlFlag) throws java.lang.RuntimeException
IDocumentFactoryService
getTextReports
in interface IDocumentFactoryService
provider
- providermode
- modexmlFlag
- XML format requestedjava.lang.RuntimeException
public TypedDependencyProvider[] getSupportedProviders()
IDocumentFactoryService
getSupportedProviders
in interface IDocumentFactoryService
public TypedDependencyMode[] getSupportedModes()
IDocumentFactoryService
getSupportedModes
in interface IDocumentFactoryService