April 2019
Beginner to intermediate
386 pages
11h 20m
English
The en-parser-chunking.bin model was used to parse the sentence. The ParserModel class was instantiated using this model:
ParserModel parserModel = new ParserModel(modelInputStream);Parser parser = ParserFactory.create(parserModel);
The parseLine method performed the parsing using three arguments:
The syntax is as follows:
Parse parseTrees[] = ParserTool.parseLine(sentence, parser, 3);
We used the count variable to track the variations and the show method displays the variations:
int count = 1;for (Parse parseTree : parseTrees) { System.out.println("Parse Tree " + count++); parseTree.show(); ...Read now
Unlock full access