Examples of Lemma


Examples of synalp.commons.input.Lemma

   */
  public Lemma getFirstFoundLemma(InstantiationContext context)
  {
    for(SelectionTemplate template : templates)
    {
      Lemma lemma = template.getLemma(context);
      if (lemma != null)
        return lemma;
    }

    return null;
View Full Code Here

Examples of synalp.commons.input.Lemma

  public Lemma getLemma(InstantiationContext context)
  {
    if (lemmaValue == null)
    {
      if (context.containsKey(SelectionPattern.LEMMA_VAR))
        return new Lemma(context.get(SelectionPattern.LEMMA_VAR).toString());
      else return null;
    }
    else return new Lemma(context.getValue(lemmaValue).toString());
  }
View Full Code Here

Examples of synalp.commons.input.Lemma

   * @return new entries
   */
  public GrammarEntries createCoselectionEntries(Grammar grammar, Semantics input, GrammarEntries otherEntries)
  {
    GrammarEntries ret = new GrammarEntries();
    Lemma lemma = template.getLemma(context);
    Equations equations = template.getEquations();
    FeatureConstant anchor = new FeatureConstant(context.getValue(SelectionPattern.ANCHOR_VAR).toString());
    for(GrammarEntry entry : grammar.getEntriesContainingTrace(template.getTrace()))
    {
      GrammarEntry newEntry = FamilyLexicalSelection.createEntry(entry, input, context, lemma, equations, false, true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.