public class CommaParser extends Object implements edu.illinois.cs.cogcomp.lbjava.parse.Parser
| Modifier and Type | Class and Description |
|---|---|
static class |
CommaParser.Ordering |
| Constructor and Description |
|---|
CommaParser(List<CommaSRLSentence> sentences,
CommaParser.Ordering ordering,
boolean orderCommasBySentence) |
public CommaParser(List<CommaSRLSentence> sentences, CommaParser.Ordering ordering, boolean orderCommasBySentence)
sentences - the sentences whose commas are to be presentedordering - the ordering of the commas: original, ordered, or randomorderCommasBySentence - set to true if the all the commas of a sentence should be
present before a comma from another sentence can be presentedpublic Object next()
next in interface edu.illinois.cs.cogcomp.lbjava.parse.Parserpublic void reset()
reset in interface edu.illinois.cs.cogcomp.lbjava.parse.Parserpublic void close()
close in interface edu.illinois.cs.cogcomp.lbjava.parse.ParserCopyright © 2017. All rights reserved.