LocalTermWeights

object LocalTermWeights extends Enumeration
  • termFrequency: use the number of times the term occurs in the document (x = freqi).
  • binary: use 1 if the term occurs in the document or 0 if it doesn't (x = χ(freqi)).
  • logarithmic: take the logarithm (base 10) of 1 + the number of times the term occurs in the document. (x = log(1 + freqi))
  • augmentedNormalizedTermFrequency: this formula adds to the binary frequency a "normalized" component expressing the frequency of a term relative to the highest frequency of terms observed in that document (x = 0.5 * (χ(freqi) + (freqi / maxk(freqk))) )
class Enumeration
trait Serializable
class Object
trait Matchable
class Any

Type members

Inherited classlikes

@SerialVersionUID(value = -3501153230598116017L)
protected class Val
Inherited from:
Enumeration
@SerialVersionUID(value = 7091335633555234129L)
abstract class Value
Inherited from:
Enumeration
Inherited from:
Enumeration
@SerialVersionUID(value = 7229671200427364242L)
class ValueSet
Inherited from:
Enumeration
@SerialVersionUID(value = 3L)
object ValueSet
Inherited from:
Enumeration

Value members

Inherited methods

final protected def Value(i: Int, name: String): Value
Inherited from:
Enumeration
final protected def Value(name: String): Value
Inherited from:
Enumeration
final protected def Value(i: Int): Value
Inherited from:
Enumeration
final protected def Value: Value
Inherited from:
Enumeration
final def apply(x: Int): Value
Inherited from:
Enumeration
final def maxId: Int
Inherited from:
Enumeration
protected def readResolve(): AnyRef
Inherited from:
Enumeration
override def toString(): String
Definition Classes
Enumeration -> Any
Inherited from:
Enumeration
Inherited from:
Enumeration
final def withName(s: String): Value
Inherited from:
Enumeration