keystoneml.nodes.nlp

NGramsCounts

case class NGramsCounts[T](mode: NGramsCountsMode.Value = NGramsCountsMode.Default)(implicit evidence$3: ClassTag[T]) extends FunctionNode[RDD[Seq[Seq[T]]], RDD[(NGram[T], Int)]] with Product with Serializable

A simple transformer that represents each ngram as an NGram and counts their occurrence. Returns an RDD[(NGram, Int)] that is sorted by frequency in descending order.

This implementation may not be space-efficient, but should handle commonly-sized workloads well.

mode

a control flag defined in NGramsCountsMode

Linear Supertypes
Product, Equals, FunctionNode[RDD[Seq[Seq[T]]], RDD[(NGram[T], Int)]], Serializable, Serializable, (RDD[Seq[Seq[T]]]) ⇒ RDD[(NGram[T], Int)], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NGramsCounts
  2. Product
  3. Equals
  4. FunctionNode
  5. Serializable
  6. Serializable
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NGramsCounts(mode: NGramsCountsMode.Value = NGramsCountsMode.Default)(implicit arg0: ClassTag[T])

    mode

    a control flag defined in NGramsCountsMode

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. def andThen[A](g: (RDD[(NGram[T], Int)]) ⇒ A): (RDD[Seq[Seq[T]]]) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(rdd: RDD[Seq[Seq[T]]]): RDD[(NGram[T], Int)]

    Definition Classes
    NGramsCounts → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ RDD[Seq[Seq[T]]]): (A) ⇒ RDD[(NGram[T], Int)]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. val mode: NGramsCountsMode.Value

    a control flag defined in NGramsCountsMode

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

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

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

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

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  21. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from FunctionNode[RDD[Seq[Seq[T]]], RDD[(NGram[T], Int)]]

Inherited from Serializable

Inherited from Serializable

Inherited from (RDD[Seq[Seq[T]]]) ⇒ RDD[(NGram[T], Int)]

Inherited from AnyRef

Inherited from Any

Ungrouped