cc
.
factorie
.
app
.
nlp
.
hcoref
BagOfWords
trait
BagOfWords
extends
AnyRef
Basic trait for doing operations with bags of words
Linear Supertypes
AnyRef
,
Any
Known Subclasses
SparseBagOfWords
Ordering
Alphabetic
By inheritance
Inherited
BagOfWords
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Abstract Value Members
abstract
def
*
(
that:
BagOfWords
)
:
Double
abstract
def
+=
(
s:
String
,
w:
Double
=
1.0
)
:
Unit
abstract
def
-=
(
s:
String
,
w:
Double
=
1.0
)
:
Unit
abstract
def
addBag
(
that:
BagOfWords
)
:
Unit
abstract
def
apply
(
word:
String
)
:
Double
abstract
def
asHashMap
:
HashMap
[
String
,
Double
]
abstract
def
contains
(
s:
String
)
:
Boolean
abstract
def
deductedDot
(
that:
BagOfWords
,
deduct:
BagOfWords
)
:
Double
abstract
def
iterator
:
Iterator
[(
String
,
Double
)]
abstract
def
l1Norm
:
Double
abstract
def
l2Norm
:
Double
abstract
def
removeBag
(
that:
BagOfWords
)
:
Unit
abstract
def
size
:
Int
Concrete Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
def
++=
(
that:
BagOfWords
)
:
Unit
def
--=
(
that:
BagOfWords
)
:
Unit
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
cosineSimilarity
(
that:
BagOfWords
)
:
Double
def
cosineSimilarity
(
that:
BagOfWords
,
deduct:
BagOfWords
)
:
Double
def
cosineSimilarityINEFFICIENT
(
that:
BagOfWords
,
deduct:
BagOfWords
)
:
Double
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
l2NormBruteForce
:
Double
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Basic trait for doing operations with bags of words