Codota Logo
ADChunkSampleStream.setEnd
Code IndexAdd Codota to your IDE (free)

How to use
setEnd
method
in
opennlp.tools.formats.ad.ADChunkSampleStream

Best Java code snippets using opennlp.tools.formats.ad.ADChunkSampleStream.setEnd (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: apache/opennlp

 public ObjectStream<ChunkSample> create(String[] args) {

  Parameters params = ArgumentParser.parse(args, Parameters.class);

  language = params.getLang();

  InputStreamFactory sampleDataIn = CmdLineUtil.createInputStreamFactory(params.getData());

  ObjectStream<String> lineStream = null;
  try {
   lineStream = new PlainTextByLineStream(sampleDataIn, params.getEncoding());
  } catch (IOException ex) {
   CmdLineUtil.handleCreateObjectStreamError(ex);
  }

  ADChunkSampleStream sampleStream = new ADChunkSampleStream(lineStream);

  if (params.getStart() != null && params.getStart() > -1) {
   sampleStream.setStart(params.getStart());
  }

  if (params.getEnd() != null && params.getEnd() > -1) {
   sampleStream.setEnd(params.getEnd());
  }

  return sampleStream;
 }
}
origin: ai.idylnlp/idylnlp-opennlp-tools-1.8.3

 public ObjectStream<ChunkSample> create(String[] args) {

  Parameters params = ArgumentParser.parse(args, Parameters.class);

  language = params.getLang();

  InputStreamFactory sampleDataIn = CmdLineUtil.createInputStreamFactory(params.getData());

  ObjectStream<String> lineStream = null;
  try {
   lineStream = new PlainTextByLineStream(sampleDataIn, params.getEncoding());
  } catch (IOException ex) {
   CmdLineUtil.handleCreateObjectStreamError(ex);
  }

  ADChunkSampleStream sampleStream = new ADChunkSampleStream(lineStream);

  if (params.getStart() != null && params.getStart() > -1) {
   sampleStream.setStart(params.getStart());
  }

  if (params.getEnd() != null && params.getEnd() > -1) {
   sampleStream.setEnd(params.getEnd());
  }

  return sampleStream;
 }
}
origin: org.apache.opennlp/opennlp-tools

 public ObjectStream<ChunkSample> create(String[] args) {

  Parameters params = ArgumentParser.parse(args, Parameters.class);

  language = params.getLang();

  InputStreamFactory sampleDataIn = CmdLineUtil.createInputStreamFactory(params.getData());

  ObjectStream<String> lineStream = null;
  try {
   lineStream = new PlainTextByLineStream(sampleDataIn, params.getEncoding());
  } catch (IOException ex) {
   CmdLineUtil.handleCreateObjectStreamError(ex);
  }

  ADChunkSampleStream sampleStream = new ADChunkSampleStream(lineStream);

  if (params.getStart() != null && params.getStart() > -1) {
   sampleStream.setStart(params.getStart());
  }

  if (params.getEnd() != null && params.getEnd() > -1) {
   sampleStream.setEnd(params.getEnd());
  }

  return sampleStream;
 }
}
opennlp.tools.formats.adADChunkSampleStreamsetEnd

Popular methods of ADChunkSampleStream

  • <init>
    Creates a new NameSample stream from a line stream, i.e. ObjectStream< String>, that could be a Plai
  • convertFuncTag
  • getChunkTag
  • getPhraseTagFromPosTag
  • isIncludePunctuations
  • isIntermediate
  • processLeaf
  • processNode
  • processRoot
  • setStart
  • read
  • read

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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