Ejemplo n.º 1
0
  public void execute(String outFolder) throws JATEException, IOException {
    ResultWriter2File writer = new ResultWriter2File();
    if (_algregistry.size() == 0) throw new JATEException("No algorithm registered!");
    _logger.info("Running NP recognition...");

    /* .extractNP(c); */
    for (Map.Entry<Algorithm, AbstractFeatureWrapper> en : _algregistry.entrySet()) {
      _logger.info("Running feature store builder and ATR..." + en.getKey().toString());
      Term[] result = en.getKey().execute(en.getValue());
      writer.output(result, outFolder + File.separator + en.getKey().toString() + ".txt");
    }
  }
Ejemplo n.º 2
0
  public void execute(GlobalIndex index, Context context)
      throws JATEException, IOException, InterruptedException {
    // NCValue code modification begins

    _index = index;

    // NCValue code modification ends

    ResultWriter2File writer = new ResultWriter2File(index);
    if (_algregistry.size() == 0) throw new JATEException("No algorithm registered!");
    _logger.info("Running NP recognition...");

    /* .extractNP(c); */
    for (Map.Entry<Algorithm, AbstractFeatureWrapper> en : _algregistry.entrySet()) {
      _logger.info("Running feature store builder and ATR..." + en.getKey().toString());
      System.out.println("******** executing on " + en.getValue());
      result = en.getKey().execute(en.getValue());
      writer.output(result, context);
    }
  }