com.peoplepattern.text

JaLangBundle

object JaLangBundle extends LangBundle

Custom language bundle for Japanese

Uses Kuromoji for tokenization https://github.com/atilika/kuromoji

Linear Supertypes
LangBundle, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JaLangBundle
  2. LangBundle
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. def isContentTerm(term: String): Boolean

    Whether the string is probably a linguistic term with meaning

    Whether the string is probably a linguistic term with meaning

    Definition Classes
    LangBundle
  14. def isHashtag(term: String): Boolean

    Whether the string can could be a social media hashtag

    Whether the string can could be a social media hashtag

    Definition Classes
    LangBundle
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def isMention(term: String): Boolean

    Whether the string could be a social media @-mention

    Whether the string could be a social media @-mention

    Definition Classes
    LangBundle
  17. def jatokens(text: String): Vector[String]

    Pure japanese text tokenization using Kuromoji

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. val stopwords: Set[String]

    Language specific stopwords

    Language specific stopwords

    Definition Classes
    JaLangBundleLangBundle
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def termBigrams(tokens: Seq[String]): Set[String]

    Extract the set of term-only bigrams from the token sequence

    Extract the set of term-only bigrams from the token sequence

    For example from the text "this is the winning team" only the bigram "winning team" would be extracted

    tokens

    the token sequence to extract n-grams from

    Definition Classes
    LangBundle
  24. def termBigrams(text: String): Set[String]

    Extract the set of term-only bigrams from the text

    Extract the set of term-only bigrams from the text

    For example from the text "this is the winning team" only the bigram "winning team" would be extracted

    text

    the text to extract n-grams from

    Definition Classes
    LangBundle
  25. def termNgrams(tokens: Seq[String], min: Int, max: Int): Set[String]

    Extract the set of term-only n-grams from the token sequence

    Extract the set of term-only n-grams from the token sequence

    For example from the text "this is the winning team" only the bigram "winning team" would be extracted

    tokens

    the token sequence to extract n-grams from

    min

    the minimum length of extracted n-grams

    max

    the maximum length of extracted n-grams

    Definition Classes
    LangBundle
  26. def termNgrams(text: String, min: Int, max: Int): Set[String]

    Extract the set of term-only n-grams from the text

    Extract the set of term-only n-grams from the text

    For example from the text "this is the winning team" only the bigram "winning team" would be extracted

    text

    the text to extract n-grams from

    min

    the minimum length of extracted n-grams

    max

    the maximum length of extracted n-grams

    Definition Classes
    LangBundle
  27. def termTrigrams(tokens: Seq[String]): Set[String]

    Extract the set of term-only bigrams from the text

    Extract the set of term-only bigrams from the text

    For example from the text "this is red sox nation" only the trigram "red sox nation" would be extracted

    tokens

    the token sequence to extract n-grams from

    Definition Classes
    LangBundle
  28. def termTrigrams(text: String): Set[String]

    Extract the set of term-only bigrams from the text

    Extract the set of term-only bigrams from the text

    For example from the text "this is red sox nation" only the trigram "red sox nation" would be extracted

    text

    the text to extract n-grams from

    Definition Classes
    LangBundle
  29. def terms(tokens: Seq[String]): Set[String]

    Extract terms from the sequence of tokens

    Extract terms from the sequence of tokens

    Definition Classes
    LangBundle
  30. def terms(text: String): Set[String]

    Tokenize the string and extract the set of terms

    Tokenize the string and extract the set of terms

    Definition Classes
    LangBundle
  31. def termsPlus(tokens: Seq[String]): Set[String]

    Extract terms plus hashtags, emoji, @-mentions from the token sequence

    Extract terms plus hashtags, emoji, @-mentions from the token sequence

    Definition Classes
    LangBundle
  32. def termsPlus(text: String): Set[String]

    Tokenize the string and extract terms plus hashtags, emoji, @-mentions

    Tokenize the string and extract terms plus hashtags, emoji, @-mentions

    Definition Classes
    LangBundle
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def tokens(text: String): Vector[String]

    Parse text into an array of String

    Parse text into an array of String

    text

    text to tokenize

    Definition Classes
    JaLangBundleLangBundle
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LangBundle

Inherited from AnyRef

Inherited from Any

Ungrouped