![]() |
GrammarScope
4.0.0
|
Public Member Functions | |
| AnalysisWriter (final String archive) | |
| void | serialize (final String text, final SentenceSegment segment, final List< Token > tokens, final Tree parseTree, final GrammaticalStructure grammaticalStructure, final Map< TypedDependencyMode, Collection< TypedDependency >> typedDependencies, final Map< TypedDependencyMode, Collection< TypedDependency >> typedDependencies2, final Map< TypedDependencyMode, SemanticGraph > semanticGraphs, final Map< TypedDependencyMode, SemanticGraph > semanticGraphs2, final List< NamedEntity > namedEntities, final Sentiment sentiment, final List< Entailment > entailments, final List< Triple > relationTriples) throws IOException |
| void | serialize (final Analysis analysis) throws IOException |
| void | serialize (final TextAnalysis analysis) throws IOException |
Private Attributes | |
| final String | archive |
Analysis writer to archive
| grammarscope.server.io.serialize.AnalysisWriter.AnalysisWriter | ( | final String | archive | ) |
Constructor
| archive | zip file |
| void grammarscope.server.io.serialize.AnalysisWriter.serialize | ( | final Analysis | analysis | ) | throws IOException |
Serialize bundled data
| analysis | analysis |
| IOException | exception |
| void grammarscope.server.io.serialize.AnalysisWriter.serialize | ( | final String | text, |
| final SentenceSegment | segment, | ||
| final List< Token > | tokens, | ||
| final Tree | parseTree, | ||
| final GrammaticalStructure | grammaticalStructure, | ||
| final Map< TypedDependencyMode, Collection< TypedDependency >> | typedDependencies, | ||
| final Map< TypedDependencyMode, Collection< TypedDependency >> | typedDependencies2, | ||
| final Map< TypedDependencyMode, SemanticGraph > | semanticGraphs, | ||
| final Map< TypedDependencyMode, SemanticGraph > | semanticGraphs2, | ||
| final List< NamedEntity > | namedEntities, | ||
| final Sentiment | sentiment, | ||
| final List< Entailment > | entailments, | ||
| final List< Triple > | relationTriples | ||
| ) | throws IOException |
Serialize data
| text | text |
| segment | segment |
| tokens | tokens |
| parseTree | parse tree |
| grammaticalStructure | grammatical structure |
| typedDependencies | typed dependencies |
| typedDependencies2 | typed dependencies |
| semanticGraphs | semantic graphs |
| semanticGraphs2 | semantic graphs2 |
| namedEntities | named entities |
| sentiment | sentiment |
| entailments | entailed sentences |
| relationTriples | relation triples |
| IOException | exception |
| void grammarscope.server.io.serialize.AnalysisWriter.serialize | ( | final TextAnalysis | analysis | ) | throws IOException |
Serialize bundled data
| analysis | analysis |
| IOException | exception |
|
private |
Zip file
1.8.17