com.peoplepattern.text.Implicits

StringWithAnalysis

implicit class StringWithAnalysis extends AnyRef

Helpers to provide access to LangBundle and StringUtil stuff on strings

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

Instance Constructors

  1. new StringWithAnalysis(str: String)

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 asOpt: Option[String]

    Some(this) if the string is non-empty and doesn't contain only white-space

  8. lazy val asUrl: Option[URL]

    The term as a URL, if it can be parsed as such

  9. lazy val bundle: LangBundle

    The language bundle for the string based on it's predicted language

  10. def charBigrams: Map[String, Int]

    Extract counts of the char bigrams in the string

  11. def charNgrams(min: Int, max: Int): Map[String, Int]

    Extract counts of the char n-grams in the string

    Extract counts of the char n-grams in the string

    min

    the minimum n-gram length to extract

    max

    the maximum n-gram length to extract

  12. def clone(): AnyRef

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  18. def isBlank: Boolean

    Whether the string is empty or only white-space

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def isUrl: Boolean

    Whether the string can be parsed as a URL

  21. lazy val lang: Option[String]

    The detected language of the string, if predicted

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

    Definition Classes
    AnyRef
  23. def nonBlank: Boolean

    Whether the string is *not* empty or only white-space

  24. final def notify(): Unit

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

    Definition Classes
    AnyRef
  26. lazy val simplifiedUrl: Option[String]

    The terms as a simplified URL if it can be parsed as such

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. lazy val termBigrams: Set[String]

    The term bigrams of the string

  29. def termNgrams(min: Int, max: Int): Set[String]

    Extract term n-grams from the string

    Extract term n-grams from the string

    min

    the minimum n-gram length to extract

    max

    the maximum n-gram length to extract

  30. lazy val termTrigrams: Set[String]

    The term 3-grams of the string

  31. lazy val terms: Set[String]

    The terms of the string using language specific tokens & stopwords

  32. lazy val termsPlus: Set[String]

    The terms + hashtags + @-mentions of the string

  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. lazy val tokens: Vector[String]

    The tokens of the string using language specific tokenization

  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 AnyRef

Inherited from Any

Ungrouped