com.peoplepattern.text

LangBundle

trait LangBundle extends AnyRef

Language-specific (or general) text processing utility

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

Abstract Value Members

  1. abstract def stopwords: Set[String]

    Language specific stopwords

Concrete 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

  14. def isHashtag(term: String): Boolean

    Whether the string can could be a social media hashtag

  15. final def isInstanceOf[T0]: Boolean

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

    Whether the string could be a social media @-mention

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

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

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

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. 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

  22. 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

  23. 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

  24. 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

  25. 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

  26. 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

  27. def terms(tokens: Seq[String]): Set[String]

    Extract terms from the sequence of tokens

  28. def terms(text: String): Set[String]

    Tokenize the string and extract the set of terms

  29. def termsPlus(tokens: Seq[String]): Set[String]

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

  30. def termsPlus(text: String): Set[String]

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

  31. def toString(): String

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

    Parse text into an array of String

    Parse text into an array of String

    text

    text to tokenize

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped