Interface Parser

    • Method Detail

      • parse

        boolean parse​(List<? extends HasWord> sentence)
        Parses the given sentence. For any words in the sentence which implement HasTag, the tag will be believed. The return value will be false if the sentence is not parseable. Acceptance is with respect to some goal category, which may be specified by the grammar, or may be a parser default (for instance, S).
        Parameters:
        sentence - A List<HasWord> to be parsed
        Returns:
        true iff the sentence is recognized
        Throws:
        UnsupportedOperationException - This will be thrown if for any reason the parser can't complete parsing this sentence, for example if the sentence is too long