![]() |
GrammarScope
4.0.0
|
Static Public Member Functions | |
| static MutableRelationModel | getDefaultModel () |
| static MutableRelationModel | getModel (final String filePath) throws MalformedURLException |
| static MutableRelationModel | getModel (final URL url) |
| static String[] | feedGR (final MutableRelationModel model) |
| static String[] | feedGRDefs (final MutableRelationModel model) |
| static String | join (final String glue, final String... s) |
| static void | main (final String[] args) |
Private Member Functions | |
| Feeder () | |
Static Private Member Functions | |
| static String | relationToJavaString (final MutableGrammaticalRelation relation) |
| static String | sourcePatternToJavaString (final Pattern sourcePattern) |
| static String | targetPatternsToJavaString (final List< TregexPattern > targetPatterns) |
| static String | toJavaStringArrayList (final String[] strs, @SuppressWarnings("SameParameterValue") final boolean quote) |
Static Private Attributes | |
| static final String | language = "edu.stanford.nlp.international.Language.English" |
| static final String | enclosingClass = "edu.stanford.nlp.trees.EnglishGrammaticalRelations" |
| static final String | typeClass = "edu.stanford.nlp.trees.GrammaticalRelation" |
| static final boolean | universal = true |
Feed source code from RelationModel
|
private |
|
static |
Feed GrammaticalRelation names
| model | relation model |
|
static |
Feed GrammaticalRelation definitions
| model | relation model |
|
static |
Get default model helper
|
static |
Get default model helper
| filePath | xml file to load model from |
| MalformedURLException | exception |
|
static |
Get default model helper
| url | url to xml document to load model from |
|
static |
Join string array
| glue | string glue |
| s | string array |
|
static |
Main
| args | none |
|
staticprivate |
Convert relation to java fq name
| relation | relation |
|
staticprivate |
Convert source pattern to source code initializer
| sourcePattern | source pattern |
|
staticprivate |
Convert target patterns to source code initializer
| targetPatterns | target patterns |
|
staticprivate |
Make java array initializer
| strs | element strings |
| quote | whether to quote |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
1.8.17