Tabnine Logo
TagDictionary
Code IndexAdd Tabnine to your IDE (free)

How to use
TagDictionary
in
opennlp.tools.postag

Best Java code snippets using opennlp.tools.postag.TagDictionary (Showing top 5 results out of 315)

origin: apache/opennlp

 public boolean validSequence(int i, String[] inputSequence,
   String[] outcomesSequence, String outcome) {
  if (tagDictionary == null) {
   return true;
  } else {
   String[] tags = tagDictionary.getTags(inputSequence[i]);
   return tags == null || Arrays.asList(tags).contains(outcome);
  }
 }
}
origin: ai.idylnlp/idylnlp-opennlp-tools-1.8.3

 public boolean validSequence(int i, String[] inputSequence,
   String[] outcomesSequence, String outcome) {
  if (tagDictionary == null) {
   return true;
  } else {
   String[] tags = tagDictionary.getTags(inputSequence[i]);
   return tags == null || Arrays.asList(tags).contains(outcome);
  }
 }
}
origin: org.apache.opennlp/opennlp-tools

 public boolean validSequence(int i, String[] inputSequence,
   String[] outcomesSequence, String outcome) {
  if (tagDictionary == null) {
   return true;
  } else {
   String[] tags = tagDictionary.getTags(inputSequence[i]);
   return tags == null || Arrays.asList(tags).contains(outcome);
  }
 }
}
origin: org.cogroo/cogroo-nlp

private String[] queryDictionary(String word, boolean recurse) {
 String[] tags = tagDictionary.getTags(word);
 if (tags == null) {
  tags = tagDictionary.getTags(word.toLowerCase());
 }
 if(recurse == true) {
  if(word.startsWith("-") && word.length() > 1) {
   tags = queryDictionary(word.substring(1), false);
  }
 }
 return GenderUtil.removeGender(tags);
}
origin: cogroo/cogroo4

private String[] queryDictionary(String word, boolean recurse) {
 String[] tags = tagDictionary.getTags(word);
 if (tags == null) {
  tags = tagDictionary.getTags(word.toLowerCase());
 }
 if(recurse == true) {
  if(word.startsWith("-") && word.length() > 1) {
   tags = queryDictionary(word.substring(1), false);
  }
 }
 return GenderUtil.removeGender(tags);
}
opennlp.tools.postagTagDictionary

Javadoc

Interface to determine which tags are valid for a particular word based on a tag dictionary.

Most used methods

  • getTags
    Returns a list of valid tags for the specified word.

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Notification (javax.management)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now