Codota Logo
USEnglishTokenizer.inKingSectionLikeMap
Code IndexAdd Codota to your IDE (free)

How to use
inKingSectionLikeMap
method
in
edu.cmu.sphinx.alignment.USEnglishTokenizer

Best Java code snippets using edu.cmu.sphinx.alignment.USEnglishTokenizer.inKingSectionLikeMap (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: cmusphinx/sphinx4

/**
 * Returns true if the given token item contains a token that is in a
 * section-like context, e.g., "chapter" or "act".
 *
 * @param tokenItem the token item to check
 *
 * @return true or false
 */
public static boolean sectionLike(Item tokenItem) {
  String sectionType =
      ((String) tokenItem.findFeature("p.name")).toLowerCase();
  return inKingSectionLikeMap(sectionType, SECTION_TYPES);
}
origin: cmusphinx/sphinx4

/**
 * Returns true if the given token item contains a token that is in a
 * king-like context, e.g., "King" or "Louis".
 *
 * @param tokenItem the token item to check
 *
 * @return true or false
 */
public static boolean kingLike(Item tokenItem) {
  String kingName =
      ((String) tokenItem.findFeature("p.name")).toLowerCase();
  if (inKingSectionLikeMap(kingName, KING_NAMES)) {
    return true;
  } else {
    String kingTitle =
        ((String) tokenItem.findFeature("p.p.name")).toLowerCase();
    return inKingSectionLikeMap(kingTitle, KING_TITLES);
  }
}
origin: de.sciss/sphinx4-core

/**
 * Returns true if the given token item contains a token that is in a
 * section-like context, e.g., "chapter" or "act".
 *
 * @param tokenItem the token item to check
 *
 * @return true or false
 */
public static boolean sectionLike(Item tokenItem) {
  String sectionType =
      ((String) tokenItem.findFeature("p.name")).toLowerCase();
  return inKingSectionLikeMap(sectionType, SECTION_TYPES);
}
origin: de.sciss/sphinx4-core

/**
 * Returns true if the given token item contains a token that is in a
 * king-like context, e.g., "King" or "Louis".
 *
 * @param tokenItem the token item to check
 *
 * @return true or false
 */
public static boolean kingLike(Item tokenItem) {
  String kingName =
      ((String) tokenItem.findFeature("p.name")).toLowerCase();
  if (inKingSectionLikeMap(kingName, KING_NAMES)) {
    return true;
  } else {
    String kingTitle =
        ((String) tokenItem.findFeature("p.p.name")).toLowerCase();
    return inKingSectionLikeMap(kingTitle, KING_TITLES);
  }
}
edu.cmu.sphinx.alignmentUSEnglishTokenizerinKingSectionLikeMap

Javadoc

Returns true if the given key is in the #kingSectionLikeMap map, and the value is the same as the given value.

Popular methods of USEnglishTokenizer

  • dashToWords
    Convert the given dashed string (e.g. "aaa-bbb") into (word) Items in the WordRelation.
  • digitsDashToWords
    Convert the given digit token with dashes (e.g. 999-999-999) into (word) Items in the WordRelation.
  • digitsSlashDigitsToWords
    Convert the given digits/digits string into word (Items) in the WordRelation.
  • digitsToWords
    Convert the given digit token into (word) Items in the WordRelation.
  • drStToWords
    Converts the given string containing "St" and "Dr" to (word) Items in the WordRelation.
  • getTokenItem
    Returns the currently processing token Item.
  • isPronounceable
    Returns true if the given word is pronounceable. This method is originally called us_aswd() in Flite
  • isStateName
    Returns true if the given token is the name of a US state. If it is, it will add the name of the sta
  • isTextSplitable
    Determines if the character at the given position of the given input text is splittable. A character
  • kingLike
    Returns true if the given token item contains a token that is in a king-like context, e.g., "King" o
  • matches
    Determines if the given input matches the given Pattern.
  • matchesPartPhoneNumber
    Returns true if the given token matches part of a phone number
  • matches,
  • matchesPartPhoneNumber,
  • notJustAlphasToWords,
  • romanToWords,
  • sectionLike,
  • simplifyChars,
  • tokenToWords,
  • usMoneyToWords,
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Kernel (java.awt.image)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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