Package edu.isi.karma.rep.cleaning

Examples of edu.isi.karma.rep.cleaning.RamblerTransformationOutput


      Messager msg = (Messager) wk.getMsg();
      if(msg == null)
      {
        msg = new Messager();
      }
      RamblerTransformationOutput rtf = applyRamblerTransformation(rows,dpp,msg);
      if (rtf.getTransformations().keySet().size() <= 0) {
        c.append(WorksheetUpdateFactory
            .createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
        c.add(new InfoUpdate("No Result Submitted"));
        return c;
      }
View Full Code Here


    RamblerTransformationInputs inputs = new RamblerTransformationInputs(
        examples, vc,dpp,msg);
    // generate the program
    boolean results = false;
    int iterNum = 0;
    RamblerTransformationOutput rtf = null;
    while (iterNum < 1 && !results) // try to find any rule during 1 times
                    // running
    {
      rtf = new RamblerTransformationOutput(inputs);
      if (rtf.getTransformations().keySet().size() > 0) {
        results = true;
      }
      iterNum++;
    }
    return rtf;
View Full Code Here

    }
    inputs = new RamblerTransformationInputs(examples, vc,dp,mg);
    // generate the program
    boolean results = false;
    int iterNum = 0;
    RamblerTransformationOutput rtf = null;
    // initialize the vocabulary
    Iterator<String> iterx = inputs.getInputValues().getValues().iterator();
    Vector<String> v = new Vector<String>();
    int vb_cnt = 0;
    while(iterx.hasNext() && vb_cnt < 30)
    {
      String eString = iterx.next();
      v.add(eString);
      vb_cnt ++;
    }
    while (iterNum < 1 && !results) // try to find an program within iterNum
    {
      rtf = new RamblerTransformationOutput(inputs);
      if (rtf.getTransformations().keySet().size() > 0) {
        results = true;
      }
      iterNum++;
    }
    Iterator<String> iter = rtf.getTransformations().keySet().iterator();
    // id:{org: tar: orgdis: tardis: }
    HashMap<String, HashMap<String, String>> resdata = new HashMap<String, HashMap<String, String>>();
    HashSet<String> keys = new HashSet<String>();
    while (iter.hasNext()) {
      String tpid = iter.next();
      ValueCollection rvco = rtf.getTransformedValues_debug(tpid);
      if (rvco == null)
        continue;
      // constructing displaying data
      HashMap<String, String[]> xyzHashMap = new HashMap<String, String[]>();
      for (String key : rvco.getNodeIDs()) {
View Full Code Here

TOP

Related Classes of edu.isi.karma.rep.cleaning.RamblerTransformationOutput

Copyright © 2018 www.massapicom. 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.