axle.nlp

TFIDFDocumentVectorSpace

class TFIDFDocumentVectorSpace extends DocumentVectorSpace

Note:

norm(v) = sqrt(dot(v, v))

distance(v1, v2) = 1 - dot(v1, v2) / (norm(v1) * norm(v2))

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

Instance Constructors

  1. new TFIDFDocumentVectorSpace(_stopwords: Set[String], corpusIterator: () ⇒ Iterator[String])

Type Members

  1. type TermVector = Map[String, Int]

    Definition Classes
    DocumentVectorSpace

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. val _space: NormedInnerProductSpace[TermVector, Double] { ... /* 3 definitions in type refinement */ }

    distance(v1: TermVector, v2: TermVector) = 1 - dot(v1, v2) / (norm(v1) * norm(v2))

  7. lazy val _vectors: IndexedSeq[TermVector]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def doc2vector(doc: String): TermVector

    Definition Classes
    DocumentVectorSpace
  11. lazy val documentFrequency: Map[String, Int]

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  18. def mrWordCount(is: Iterator[String]): Map[String, Int]

    Definition Classes
    DocumentVectorSpace
  19. def mrWordExistsCount(is: Iterator[String]): Map[String, Int]

    Definition Classes
    DocumentVectorSpace
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. lazy val numDocs: Int

  24. def space(): NormedInnerProductSpace[TermVector, Double] { ... /* 3 definitions in type refinement */ }

  25. def stopwords(): Set[String]

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

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def vectors(): IndexedSeq[TermVector]

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. val whitespace: Regex

    Definition Classes
    DocumentVectorSpace

Inherited from DocumentVectorSpace

Inherited from AnyRef

Inherited from Any

Ungrouped