Examples of Semantics

  • vn.SEMANTICS

  • Examples of synalp.commons.semantics.Semantics

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

    Examples of synalp.commons.semantics.Semantics

      public static Map<String, EntryPack> createPacksSemOnly(PolarityContext context)
      {
        Map<Semantics, GrammarEntries> table = new HashMap<Semantics, GrammarEntries>();
        for(GrammarEntry entry : context.getEntries())
        {
          Semantics sem = entry.getSemantics();
          if (!table.containsKey(sem))
            table.put(sem, new GrammarEntries());
          table.get(sem).add(entry);
        }
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

      public static Map<String, EntryPack> createPacksSemKey(PolarityContext context)
      {
        Table<Semantics, PolarityKeys, GrammarEntries> table = HashBasedTable.create();
        for(GrammarEntry entry : context.getEntries())
        {
          Semantics sem = entry.getSemantics();
          PolarityKeys keys = context.getPolarity(entry);
          if (!table.contains(sem, keys))
            table.put(sem, keys, new GrammarEntries());
          table.get(sem, keys).add(entry);
        }
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

      private String processGenerateForInput(JsonObject object, String input)
      {
        if (!object.has("sem"))
          return errorMessage("input has no \"sem\" key", input);

        Semantics semantics = null;
        try
        {
          semantics = InputReader.readSemantics(object.get("sem").getAsString());
        }
        catch (Exception e)
    View Full Code Here

    Examples of vn.SEMANTICS

                      .get(position);
                  System.out.println("Verb : " + frameItem.pos.text);
                }
                position++;
              }
              SEMANTICS semantics = frame.getSEMANTICS();
              List<PRED> predicates = semantics.getPRED();
              for (PRED pred : predicates) {
                System.out.println("Predicate : " + pred.getValue());
                // TODO handle other predicates
                if (knownPredicates.contains(pred.getValue())) {
                  return new VerbnetInfo(frame, pred);
    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.