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, getWordsprivate java.util.concurrent.Future<ATextAnalysis> futureTextAnalysis
public DocumentFactoryAsync()
throws java.lang.Exception
java.lang.Exception - exceptionpublic boolean init(java.lang.String text)
IDocumentFactoryinit in interface IDocumentFactoryinit in class AbstractDocumentFactorytext - input textprotected ATextAnalysis getTextAnalysis()
getTextAnalysis in class AbstractDocumentFactorypublic TypedDependencyMode[] getSupportedModes() throws java.lang.RuntimeException
IDocumentFactoryServicegetSupportedModes in interface IDocumentFactoryServicegetSupportedModes in class AbstractDocumentFactoryjava.lang.RuntimeExceptionpublic java.lang.String processText(java.lang.String text)
throws java.lang.Exception
processText in class AbstractDocumentFactoryjava.lang.Exception