![]() |
GrammarScope
4.0.0
|
Public Member Functions | |
DefaultParserServer () | |
void | setup (final Properties properties) |
void | reset () |
boolean | bind () |
void | unbind () |
String | getParserOptions () |
boolean | isValid () |
String | getDescription () |
Options | getOptions () |
ISegmenter | getSegmenter () |
IMorphology | getMorphology () |
IParser | getParser () |
IGrammaticalStructureAnalyzer | getGrammaticalStructureAnalyzer () |
IDependencyParser | getDependencyParser () |
ITypedDependenciesAnalyzer | getTypedDependenciesAnalyzer () |
ISemanticGraphAnalyzer | getSemanticGraphAnalyzer () |
long | getCapabilities () |
List< Token > | makeTokens (final Tree tree) |
TextAnalysis | processText (final String text) throws IllegalArgumentException |
Properties | getDefaultConfig (final Language lang) |
Static Public Member Functions | |
static String | makeDescription (final Properties properties) |
static void | main (final String[] args) |
Private Member Functions | |
void | makeTokens (final Tree tree, final List< Token > tokens, final Map< Tree, Integer > indices) |
Language | getLanguage () |
Static Private Attributes | |
static int | instantiationCount |
Default Stanford parser server. Every binding attempt will result in an instantiation.
grammarscope.server.parser.DefaultParserServer.DefaultParserServer | ( | ) |
Constructor
boolean grammarscope.server.parser.DefaultParserServer.bind | ( | ) |
Load all submodules (segmenter, parser, analyzer, ...)
Implements grammarscope.server.iface.IServer.
Reimplemented in grammarscope.server.parser.SingletonParserServer.
long grammarscope.server.parser.DefaultParserServer.getCapabilities | ( | ) |
Properties grammarscope.server.parser.DefaultParserServer.getDefaultConfig | ( | final Language | lang | ) |
IDependencyParser grammarscope.server.parser.DefaultParserServer.getDependencyParser | ( | ) |
Get dependency parser
Implements grammarscope.server.parser.iface.IStanfordServer.
String grammarscope.server.parser.DefaultParserServer.getDescription | ( | ) |
IGrammaticalStructureAnalyzer grammarscope.server.parser.DefaultParserServer.getGrammaticalStructureAnalyzer | ( | ) |
Get grammatical structure analyzer
Implements grammarscope.server.parser.iface.IStanfordServer.
|
private |
Language factory
IMorphology grammarscope.server.parser.DefaultParserServer.getMorphology | ( | ) |
Options grammarscope.server.parser.DefaultParserServer.getOptions | ( | ) |
IParser grammarscope.server.parser.DefaultParserServer.getParser | ( | ) |
String grammarscope.server.parser.DefaultParserServer.getParserOptions | ( | ) |
Get parser options
Implements grammarscope.server.parser.iface.IStanfordServer.
ISegmenter grammarscope.server.parser.DefaultParserServer.getSegmenter | ( | ) |
ISemanticGraphAnalyzer grammarscope.server.parser.DefaultParserServer.getSemanticGraphAnalyzer | ( | ) |
Get semantic graph analyzer
Implements grammarscope.server.parser.iface.IStanfordServer.
ITypedDependenciesAnalyzer grammarscope.server.parser.DefaultParserServer.getTypedDependenciesAnalyzer | ( | ) |
Get typed dependencies analyzer
Implements grammarscope.server.parser.iface.IStanfordServer.
boolean grammarscope.server.parser.DefaultParserServer.isValid | ( | ) |
Whether server is valid
Implements grammarscope.server.parser.iface.IStanfordServer.
|
static |
Main
args | files |
|
static |
List<Token> grammarscope.server.parser.DefaultParserServer.makeTokens | ( | final Tree | tree | ) |
Make tokens from parse tree
tree | parse tree |
|
private |
Build token list from parse tree
tree | parse tree |
tokens | result token list |
indices | node indices |
TextAnalysis grammarscope.server.parser.DefaultParserServer.processText | ( | final String | text | ) | throws IllegalArgumentException |
Process text
text | text |
IllegalArgumentException | exception |
void grammarscope.server.parser.DefaultParserServer.reset | ( | ) |
Reset
Implements grammarscope.server.iface.IServer.
Reimplemented in grammarscope.server.parser.SingletonParserServer.
void grammarscope.server.parser.DefaultParserServer.setup | ( | final Properties | settings | ) |
void grammarscope.server.parser.DefaultParserServer.unbind | ( | ) |
Unbind
Implements grammarscope.server.iface.IServer.
Reimplemented in grammarscope.server.parser.SingletonParserServer.
|
private |
Dependency parser
|
private |
Grammatical structure analyzer
|
staticprivate |
Instantiation count
|
private |
|
private |
|
private |
Semantic graph analyzer
|
private |
|
private |
|
private |
Settings
|
private |
Typed dependency analyzer
|
private |
|
private |