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

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

Best Java code snippets using opennlp.tools.formats.ad.ADChunkSampleStream.setStart (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.adADChunkSampleStreamsetStart

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
  • setEnd
  • read
  • read

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • startActivity (Activity)
  • Menu (java.awt)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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