Package synalp.commons.semantics

Examples of synalp.commons.semantics.Semantics.instantiate()


      FeatureStructure entryInterface = new FeatureStructure(macro.getMacroInterface());
      entryInterface.instantiate(context);
      ret.setInterface(entryInterface);

      Semantics semantics = new Semantics(macro.getSemantics());
      semantics.instantiate(context);
      ret.setSemantics(semantics);
    }

    return ret;
  }
View Full Code Here


          /*
           * set instantiated semantics, if the fam sem is a pattern use this semantics
           * else use normally the semantics of the entry
           */
          Semantics lexSemantics = new Semantics(famSem.isPattern() ? famSem.getSemantics() : entry.getSemantics());
          lexSemantics.instantiate(famSem.getLemmas().get(lemma));
          lexEntry.setSemantics(lexSemantics);

          /*
           * set all equations: the family-wide equations, the equations for the particular lemma and the co-anchor equations.
           * Note that the family equations are only set for famSem that have lemmas!
View Full Code Here

   */
  public void apply(Semantics semantics, InstantiationContext context)
  {
    createConstants(semantics, context);
    Semantics newSem = new Semantics(add);
    newSem.instantiate(context);
    semantics.addAll(newSem);
  }


  @Override
View Full Code Here

   * @param context
   */
  public void apply(Semantics semantics, InstantiationContext context)
  {
    Semantics sem = new Semantics(toDelete);
    sem.instantiate(context);
    semantics.removeAll(sem);
  }


  /**
 
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.