Examples of addTerm()


Examples of edu.pitt.terminology.lexicon.Concept.addTerm()

                form = m.group(2);
              }
              Term t = Term.getTerm(val);
              if(form != null)
                t.setForm(form);
              c.addTerm(t);
            }else if("is_a".equals(key)){
              int j = val.indexOf("!");
              if(j > -1)
                val = val.substring(0,j).trim();
              c.addRelatedConcept(Relation.BROADER,val);
View Full Code Here

Examples of etch.util.URL.addTerm()

  {
    FlexBuffer buf = new FlexBuffer();
   
    URL u = new URL( "none:" );
    if (stringTypeAndField != null)
      u.addTerm( BinaryTaggedDataOutput.STRING_TYPE_AND_FIELD, stringTypeAndField );
   
    BinaryTaggedDataOutput btdo = new BinaryTaggedDataOutput( vf, u.toString() );
    btdo.writeMessage( msg, buf );
    buf.setIndex( 0 );
    return buf.getAvailBytes();
View Full Code Here

Examples of gem.util.TermCounter.addTerm()

    int i = 0;
    TermCounter tc = new TermCounter();
    for (String sym : count.keySet())
    {
      int score = count.get(sym);
      tc.addTerm("" + score);
      if (Math.abs(score) > 1)
      {
        System.out.println(sym + "\t" + score);
        i++;
      }
View Full Code Here

Examples of gem.util.TermCounter.addTerm()

    TermCounter cnt = new TermCounter();
    for (Triplet t : trips)
    {
      String sym = map.get(t.target);
      cnt.addTerm(sym != null ? sym : t.target);
    }
    cnt.print();
  }

  public static List<Triplet> filterToLogicalAND(Collection<Triplet> trips)
View Full Code Here

Examples of gem.util.TermCounter.addTerm()

    for (String tar : tar2facs.keySet())
    {
      for (String fac : tar2facs.get(tar))
      {
        cnt.addTerm(tar);
      }
    }

    cnt.print();
  }
View Full Code Here

Examples of ilog.concert.IloLinearNumExpr.addTerm()

    ship = new IloNumVar[nW][nC];
    IloLinearNumExpr expr = cplex.linearNumExpr();
    // declare the variables and simultaneously assemble the objective function
    for (int i = 0; i < nW; i++) {
      use[i] = cplex.boolVar("Use" + i);
      expr.addTerm(fixed[i], use[i]);
      for (int j = 0; j < nC; j++) {
        ship[i][j] = cplex.numVar(0.0, Math.min(capacity[i], demand[j]),
                                  "Ship_" + i + "_" + j);
        expr.addTerm(flow[i][j], ship[i][j]);
      }
View Full Code Here

Examples of jason.asSyntax.Structure.addTerm()

          }
         
          final OperatorImpl copy = (OperatorImpl) operator.clone();
          Structure struct = new Structure(copy.getFunctor());
          for(Term term : termInstances) {
            struct.addTerm(term);
          }
         
          Unifier unifier = new Unifier();
          if(unifier.unifies(copy, struct)) {
            copy.apply(unifier);
View Full Code Here

Examples of org.apache.beehive.netui.script.el.ParsedExpression.addTerm()

                    break label_1;
            }
            switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                case NON_EXPRESSION_TEXT:
                    term = parseLiteralTerm();
                    pe.addTerm(term);
                    break;
                case START_EXPRESSION:
                    jj_consume_token(START_EXPRESSION);
                    term = parseExpression();
                    jj_consume_token(END_EXPRESSION);
View Full Code Here

Examples of org.apache.beehive.netui.script.el.ParsedExpression.addTerm()

                    break;
                case START_EXPRESSION:
                    jj_consume_token(START_EXPRESSION);
                    term = parseExpression();
                    jj_consume_token(END_EXPRESSION);
                    pe.addTerm(term);
                    break;
                case ESCAPED_START_EXPRESSION:
                    jj_consume_token(ESCAPED_START_EXPRESSION);
                    term = parseExpression();
                    jj_consume_token(END_EXPRESSION);
View Full Code Here

Examples of org.apache.beehive.netui.script.el.ParsedExpression.addTerm()

                    break;
                case ESCAPED_START_EXPRESSION:
                    jj_consume_token(ESCAPED_START_EXPRESSION);
                    term = parseExpression();
                    jj_consume_token(END_EXPRESSION);
                    pe.addTerm(new LiteralTerm("\\"));
                    pe.addTerm(term);
                    break;
                default:
                    jj_la1[1] = jj_gen;
                    jj_consume_token(-1);
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.