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

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

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

protected void processLeaf(Leaf leaf, boolean isIntermediate, String phraseTag,
  List<String> sentence, List<String> tags, List<String> target) {
 String chunkTag;
 if (leaf.getFunctionalTag() != null
   && phraseTag.equals(OTHER)) {
  phraseTag = getPhraseTagFromPosTag(leaf.getFunctionalTag());
 }
 if (!phraseTag.equals(OTHER)) {
  if (isIntermediate) {
   chunkTag = "I-" + phraseTag;
  } else {
   chunkTag = "B-" + phraseTag;
  }
 } else {
  chunkTag = phraseTag;
 }
 sentence.add(leaf.getLexeme());
 if (leaf.getSyntacticTag() == null) {
  tags.add(leaf.getLexeme());
 } else {
  tags.add(ADChunkSampleStream.convertFuncTag(leaf.getFunctionalTag(), false));
 }
 target.add(chunkTag);
}
origin: org.apache.opennlp/opennlp-tools

protected void processLeaf(Leaf leaf, boolean isIntermediate, String phraseTag,
  List<String> sentence, List<String> tags, List<String> target) {
 String chunkTag;
 if (leaf.getFunctionalTag() != null
   && phraseTag.equals(OTHER)) {
  phraseTag = getPhraseTagFromPosTag(leaf.getFunctionalTag());
 }
 if (!phraseTag.equals(OTHER)) {
  if (isIntermediate) {
   chunkTag = "I-" + phraseTag;
  } else {
   chunkTag = "B-" + phraseTag;
  }
 } else {
  chunkTag = phraseTag;
 }
 sentence.add(leaf.getLexeme());
 if (leaf.getSyntacticTag() == null) {
  tags.add(leaf.getLexeme());
 } else {
  tags.add(ADChunkSampleStream.convertFuncTag(leaf.getFunctionalTag(), false));
 }
 target.add(chunkTag);
}
origin: ai.idylnlp/idylnlp-opennlp-tools-1.8.3

protected void processLeaf(Leaf leaf, boolean isIntermediate, String phraseTag,
  List<String> sentence, List<String> tags, List<String> target) {
 String chunkTag;
 if (leaf.getFunctionalTag() != null
   && phraseTag.equals(OTHER)) {
  phraseTag = getPhraseTagFromPosTag(leaf.getFunctionalTag());
 }
 if (!phraseTag.equals(OTHER)) {
  if (isIntermediate) {
   chunkTag = "I-" + phraseTag;
  } else {
   chunkTag = "B-" + phraseTag;
  }
 } else {
  chunkTag = phraseTag;
 }
 sentence.add(leaf.getLexeme());
 if (leaf.getSyntacticTag() == null) {
  tags.add(leaf.getLexeme());
 } else {
  tags.add(ADChunkSampleStream.convertFuncTag(leaf.getFunctionalTag(), false));
 }
 target.add(chunkTag);
}
opennlp.tools.formats.adADChunkSampleStreamgetPhraseTagFromPosTag

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
  • isIncludePunctuations
  • isIntermediate
  • processLeaf
  • processNode
  • processRoot
  • setEnd
  • setStart
  • read
  • read

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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