public static ParametricCcgParser parseFromLexicon(Iterable<String> unfilteredLexiconLines,
      Iterable<String> unknownWordLexiconLines, Iterable<String> unfilteredRuleLines,
      CcgFeatureFactory featureFactory, Set<String> posTagSet, boolean allowComposition,
      Iterable<CcgRuleSchema> allowedCombinationRules, boolean normalFormOnly) {
    Preconditions.checkNotNull(featureFactory);

    // System.out.println("Reading lexicon and rules...");
    List<CcgBinaryRule> binaryRules = Lists.newArrayList();
    List<CcgUnaryRule> unaryRules = Lists.newArrayList();
    CcgBinaryRule.parseBinaryAndUnaryRules(unfilteredRuleLines, binaryRules, unaryRules);

    List<LexiconEntry> lexiconEntries = LexiconEntry.parseLexiconEntries(unfilteredLexiconLines);
    List<LexiconEntry> unknownLexiconEntries = LexiconEntry.parseLexiconEntries(unknownWordLexiconLines);
    return ParametricCcgParser.parseFromLexicon(lexiconEntries, unknownLexiconEntries, binaryRules,
        unaryRules, featureFactory, posTagSet, allowComposition, allowedCombinationRules,
        normalFormOnly);
  }
public static ParametricCcgParser parseFromLexicon ( Iterable < String > unfilteredLexiconLines , Iterable < String > unknownWordLexiconLines , Iterable < String > unfilteredRuleLines , CcgFeatureFactory featureFactory , Set < String > posTagSet , boolean allowComposition , Iterable < CcgRuleSchema > allowedCombinationRules , boolean normalFormOnly ) { Preconditions . checkNotNull ( featureFactory ) ; List < CcgBinaryRule > binaryRules = Lists . newArrayList ( ) ; List < CcgUnaryRule > unaryRules = Lists . newArrayList ( ) ; CcgBinaryRule . parseBinaryAndUnaryRules ( unfilteredRuleLines , binaryRules , unaryRules ) ; List < LexiconEntry > lexiconEntries = LexiconEntry . parseLexiconEntries ( unfilteredLexiconLines ) ; List < LexiconEntry > unknownLexiconEntries = LexiconEntry . parseLexiconEntries ( unknownWordLexiconLines ) ; return ParametricCcgParser . parseFromLexicon ( lexiconEntries , unknownLexiconEntries , binaryRules , unaryRules , featureFactory , posTagSet , allowComposition , allowedCombinationRules , normalFormOnly ) ; }
Produces a parametric CCG parser from a lexicon, represented a
series of phrase/CCG category mappings. Each mapping is given as
a comma separated string, whose first value is the phrase and
whose second value is the CCG category string. Lines beginning
with # are interpreted as comments and skipped over.

@param unfilteredLexiconLines
@param unknownWordLexiconLines
@param unfilteredRuleLines
@param featureFactory a factory for building the parser's feature
sets.
@param posTagSet set of POS tags in the data. If null,
{@code ParametricCcgParser.DEFAULT_POS_TAG} is the only POS tag.
@param allowComposition allow function composition in addition to
other CCG rules.
@param allowedCombinationRules
@param normalFormOnly
@return