Codota Logo
Options
Code IndexAdd Codota to your IDE (free)

How to use
Options
in
is2.tag

Best Java code snippets using is2.tag.Options (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: com.googlecode.mate-tools/anna

/**
 * @param modelFileName the file name of the model
 */
public Tagger(String modelFileName) {
  this(new Options(new String[]{"-model",modelFileName}));
}
origin: com.googlecode.mate-tools/anna

String[] pair = args[i].split(":");
if (pair[0].equals("--help")) explain();
else if (pair[0].equals("-train")) {
  train = true;
origin: com.googlecode.mate-tools/srl

public static Tagger getTagger(File modelFile) {
  String[] argsT={"-model",modelFile.toString()};
  return new Tagger(new is2.tag.Options(argsT));
}

origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.matetools-gpl

  @Override
  protected Tagger produceResource(URL aUrl)
    throws IOException
  {
    File modelFile = ResourceUtils.getUrlAsFile(aUrl, true);
    String[] args = { "-model", modelFile.getPath() };
    Options option = new Options(args);
    Tagger tagger = new Tagger(option); // create a POSTagger
    HashMap<String, HashMap<String, Integer>> featureSet = tagger.mf.getFeatureSet();
    SingletonTagset posTags = new SingletonTagset(POS.class, getResourceMetaData()
        .getProperty("pos.tagset"));
    HashMap<String, Integer> posTagFeatures = featureSet.get("POS");
    posTags.addAll(posTagFeatures.keySet());
    posTags.removeAll(asList("<None>", "<root-POS>"));
    addTagset(posTags);
    if (printTagSet) {
      getContext().getLogger().log(INFO, getTagset().toString());
    }
    return tagger;
  }
};
origin: com.googlecode.mate-tools/anna

is2.tag.Options optsTagger = new is2.tag.Options(new String[]{"-model","models/tag-eng.model"});
Tagger tagger = new Tagger(optsTagger);
origin: com.googlecode.mate-tools/anna

public static void main (String[] args) throws FileNotFoundException, Exception
{
  long start = System.currentTimeMillis();
  Options options = new Options(args);
  Tagger tagger = new Tagger();
  if (options.train) {
    //		depReader.normalizeOn=false;
    tagger.li = new Long2Int(options.hsize);
    tagger.pipe =  new ExtractorT2 (options, tagger.mf= new MFO());
    
    //tagger.pipe.li =tagger.li;
     
    InstancesTagger is = (InstancesTagger)tagger.pipe.createInstances(options.trainfile);
    tagger.params = new ParametersFloat(tagger.li.size());
    tagger.train(options, tagger.pipe,tagger.params,is);
    tagger.writeModel(options, tagger.pipe, tagger.params);
  }
  if (options.test) {
    tagger.readModel(options);
    
    tagger.out(options,tagger.pipe, tagger.params);
  }
  System.out.println();
  if (options.eval) {
    System.out.println("\nEVALUATION PERFORMANCE:");
    Evaluator.evaluateTagger(options.goldfile, options.outfile,options.format);
  }
  long end = System.currentTimeMillis();
  System.out.println("used time "+((float)((end-start)/100)/10));
}
is2.tagOptions

Most used methods

  • <init>
  • explain

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now