public class AnalysisWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
archive
Zip file
|
| Constructor and Description |
|---|
AnalysisWriter(java.lang.String archive)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(Analysis analysis)
Serialize bundled data
|
void |
serialize(java.lang.String text,
SentenceSegment segment,
java.util.List<Token> tokens,
edu.stanford.nlp.trees.Tree parseTree,
edu.stanford.nlp.trees.GrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies2,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs2,
java.util.List<NamedEntity> namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> relationTriples)
Serialize data
|
void |
serialize(TextAnalysis analysis)
Serialize bundled data
|
public AnalysisWriter(java.lang.String archive)
archive - zip filepublic void serialize(java.lang.String text,
SentenceSegment segment,
java.util.List<Token> tokens,
edu.stanford.nlp.trees.Tree parseTree,
edu.stanford.nlp.trees.GrammaticalStructure grammaticalStructure,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies,
java.util.Map<TypedDependencyMode,java.util.Collection<edu.stanford.nlp.trees.TypedDependency>> typedDependencies2,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs,
java.util.Map<TypedDependencyMode,edu.stanford.nlp.semgraph.SemanticGraph> semanticGraphs2,
java.util.List<NamedEntity> namedEntities,
Sentiment sentiment,
java.util.List<Entailment> entailments,
java.util.List<Triple> relationTriples)
throws java.io.IOException
text - textsegment - segmenttokens - tokensparseTree - parse treegrammaticalStructure - grammatical structuretypedDependencies - typed dependenciestypedDependencies2 - typed dependenciessemanticGraphs - semantic graphssemanticGraphs2 - semantic graphs2namedEntities - named entitiessentiment - sentimententailments - entailed sentencesrelationTriples - relation triplesjava.io.IOException - exceptionpublic void serialize(Analysis analysis) throws java.io.IOException
analysis - analysisjava.io.IOException - exceptionpublic void serialize(TextAnalysis analysis) throws java.io.IOException
analysis - analysisjava.io.IOException - exception