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)
IDocumentFactoryinit in interface IDocumentFactorytext - input textpublic java.lang.String getText()
throws java.lang.RuntimeException
IDocumentFactoryServicegetText in interface IDocumentFactoryServicejava.lang.RuntimeExceptionpublic java.util.List<WordSegment> getWords() throws java.lang.RuntimeException
IDocumentFactoryServicegetWords in interface IDocumentFactoryServicejava.lang.RuntimeExceptionpublic java.util.List<SentenceSegment> getSentences() throws java.lang.RuntimeException
IDocumentFactoryServicegetSentences in interface IDocumentFactoryServicejava.lang.RuntimeExceptionpublic int getSentenceCount()
throws java.lang.RuntimeException
IDocumentFactoryServicegetSentenceCount in interface IDocumentFactoryServicejava.lang.RuntimeExceptionpublic java.util.List<Token> getTokens(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetTokens in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeException - runtime exceptionpublic AParseTree getParseTree(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetParseTree in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic APartsOfSpeech getPoses(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetPoses in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic AGrammaticalStructure getGrammaticalStructure(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetGrammaticalStructure in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic ARelationDependents getRelationDependents(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetRelationDependents in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic ATypedDependencies getTypedDependencies(int sentenceIdx, TypedDependencyProvider provider, TypedDependencyMode mode) throws java.lang.RuntimeException
IDocumentFactoryServicegetTypedDependencies in interface IDocumentFactoryServicesentenceIdx - sentence indexprovider - typed dependency providermode - typed dependency modejava.lang.RuntimeExceptionpublic java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ATypedDependencies>> getTypedDependencies(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetTypedDependencies in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic ASemanticGraph getSemanticGraph(int sentenceIdx, TypedDependencyProvider provider, TypedDependencyMode mode) throws java.lang.RuntimeException
IDocumentFactoryServicegetSemanticGraph in interface IDocumentFactoryServicesentenceIdx - sentence indexprovider - typed dependency providermode - typed dependency modejava.lang.RuntimeExceptionpublic java.util.Map<TypedDependencyProvider,java.util.Map<TypedDependencyMode,ASemanticGraph>> getSemanticGraphs(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetSemanticGraphs in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic ANamedEntities getNamedEntities(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetNamedEntities in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic Sentiment getSentiment(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetSentiment in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic java.util.List<Entailment> getEntailments(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetEntailments in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic java.util.List<Triple> getTriples(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetTriples in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic ACoreferences getCoreferences() throws java.lang.RuntimeException
IDocumentFactoryServicegetCoreferences in interface IDocumentFactoryServicejava.lang.RuntimeExceptionpublic AAnalysis getAnalysis(int sentenceIdx) throws java.lang.RuntimeException
IDocumentFactoryServicegetAnalysis in interface IDocumentFactoryServicesentenceIdx - sentence indexjava.lang.RuntimeExceptionpublic ATextAnalysis getTextAnalysis(TypedDependencyProvider provider, TypedDependencyMode mode) throws java.lang.RuntimeException
IDocumentFactoryServicegetTextAnalysis in interface IDocumentFactoryServiceprovider - providermode - modejava.lang.RuntimeExceptionpublic java.lang.String getReport(int sentenceIdx,
boolean xmlFlag)
throws java.lang.RuntimeException
IDocumentFactoryServicegetReport in interface IDocumentFactoryServicesentenceIdx - sentence indexxmlFlag - XML format requestedjava.lang.RuntimeExceptionpublic java.lang.String[] getReports(int sentenceIdx,
boolean xmlFlag)
throws java.lang.RuntimeException
IDocumentFactoryServicegetReports in interface IDocumentFactoryServicesentenceIdx - sentence indexxmlFlag - XML format requestedjava.lang.RuntimeExceptionpublic java.lang.String getTextReport(TypedDependencyProvider provider, TypedDependencyMode mode, boolean xmlFlag) throws java.lang.RuntimeException
IDocumentFactoryServicegetTextReport in interface IDocumentFactoryServiceprovider - providermode - modexmlFlag - XML format requestedjava.lang.RuntimeExceptionpublic java.lang.String[] getTextReports(TypedDependencyProvider provider, TypedDependencyMode mode, boolean xmlFlag) throws java.lang.RuntimeException
IDocumentFactoryServicegetTextReports in interface IDocumentFactoryServiceprovider - providermode - modexmlFlag - XML format requestedjava.lang.RuntimeExceptionpublic TypedDependencyProvider[] getSupportedProviders()
IDocumentFactoryServicegetSupportedProviders in interface IDocumentFactoryServicepublic TypedDependencyMode[] getSupportedModes()
IDocumentFactoryServicegetSupportedModes in interface IDocumentFactoryService