public class DocumentFactoryAsync extends AbstractDocumentFactory
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Future<ATextAnalysis> |
futureTextAnalysis
Future text analysis
|
text, textAnalysis
Constructor and Description |
---|
DocumentFactoryAsync()
Constructor
|
Modifier and Type | Method and Description |
---|---|
TypedDependencyMode[] |
getSupportedModes()
Get supported typed dependency modes
|
protected ATextAnalysis |
getTextAnalysis()
Get text analysis
|
boolean |
init(java.lang.String text)
Init processing
|
java.lang.String |
processText(java.lang.String text) |
getAnalysis, getArtifactCoreferences, getArtifactEntailments, getArtifactGrammaticalStructure, getArtifactNamedEntities, getArtifactParseTree, getArtifactSegmentation, getArtifactSemanticGraph, getArtifactSemanticGraphs, getArtifactSentiment, getArtifactTriples, getArtifactTypedDependencies, getCoreferences, getEntailments, getGrammaticalStructure, getNamedEntities, getParseTree, getPoses, getRelationDependents, getReport, getReports, getSemanticGraph, getSemanticGraphs, getSentenceCount, getSentences, getSentiment, getSupportedProviders, getText, getTextAnalysis, getTextReport, getTextReports, getTokens, getTriples, getTypedDependencies, getTypedDependencies, getWords
private java.util.concurrent.Future<ATextAnalysis> futureTextAnalysis
public DocumentFactoryAsync() throws java.lang.Exception
java.lang.Exception
- exceptionpublic boolean init(java.lang.String text)
IDocumentFactory
init
in interface IDocumentFactory
init
in class AbstractDocumentFactory
text
- input textprotected ATextAnalysis getTextAnalysis()
getTextAnalysis
in class AbstractDocumentFactory
public TypedDependencyMode[] getSupportedModes() throws java.lang.RuntimeException
IDocumentFactoryService
getSupportedModes
in interface IDocumentFactoryService
getSupportedModes
in class AbstractDocumentFactory
java.lang.RuntimeException
public java.lang.String processText(java.lang.String text) throws java.lang.Exception
processText
in class AbstractDocumentFactory
java.lang.Exception