cc
.
factorie
.
app
.
nlp
.
hcoref
SparseBagOfWords
class
SparseBagOfWords
extends
BagOfWords
Linear Supertypes
BagOfWords
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
SparseBagOfWords
BagOfWords
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
SparseBagOfWords
(
initialWords:
Iterable
[
String
] =
null
,
initialBag:
Map
[
String
,
Double
] =
null
)
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
)
:
Double
Definition Classes
SparseBagOfWords
→
BagOfWords
def
++=
(
that:
BagOfWords
)
:
Unit
Definition Classes
BagOfWords
def
+=
(
s:
String
,
w:
Double
=
1.0
)
:
Unit
Definition Classes
SparseBagOfWords
→
BagOfWords
def
--=
(
that:
BagOfWords
)
:
Unit
Definition Classes
BagOfWords
def
-=
(
s:
String
,
w:
Double
=
1.0
)
:
Unit
Definition Classes
SparseBagOfWords
→
BagOfWords
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
var
_bag
:
LinkedHashMap
[
String
,
Double
]
Attributes
protected
var
_l1Norm
:
Double
Attributes
protected
var
_l2Norm
:
Double
Attributes
protected
def
addBag
(
that:
BagOfWords
)
:
Unit
Definition Classes
SparseBagOfWords
→
BagOfWords
def
apply
(
s:
String
)
:
Double
Definition Classes
SparseBagOfWords
→
BagOfWords
def
asHashMap
:
HashMap
[
String
,
Double
]
Definition Classes
SparseBagOfWords
→
BagOfWords
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clear
()
:
Unit
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
contains
(
s:
String
)
:
Boolean
Definition Classes
SparseBagOfWords
→
BagOfWords
def
cosineSimilarity
(
that:
BagOfWords
)
:
Double
Definition Classes
BagOfWords
def
cosineSimilarity
(
that:
BagOfWords
,
deduct:
BagOfWords
)
:
Double
Definition Classes
BagOfWords
def
cosineSimilarityINEFFICIENT
(
that:
BagOfWords
,
deduct:
BagOfWords
)
:
Double
Definition Classes
BagOfWords
def
deductedDot
(
that:
BagOfWords
,
deduct:
BagOfWords
)
:
Double
Definition Classes
SparseBagOfWords
→
BagOfWords
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
iterator
:
Iterator
[(
String
,
Double
)]
Definition Classes
SparseBagOfWords
→
BagOfWords
def
l1Norm
:
Double
Definition Classes
SparseBagOfWords
→
BagOfWords
def
l2Norm
:
Double
Definition Classes
SparseBagOfWords
→
BagOfWords
def
l2NormBruteForce
:
Double
Definition Classes
BagOfWords
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
removeBag
(
that:
BagOfWords
)
:
Unit
Definition Classes
SparseBagOfWords
→
BagOfWords
def
size
:
Int
Definition Classes
SparseBagOfWords
→
BagOfWords
def
sizeHint
(
n:
Int
)
:
Unit
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
SparseBagOfWords
→ AnyRef → Any
var
variable
:
BagOfWordsVariable
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
(
...
)
final
def
withinEpsilon
(
v1:
Double
,
v2:
Double
,
epsilon:
Double
=
0.000001
)
:
Boolean
Annotations
@inline
()
Inherited from
BagOfWords
Inherited from
AnyRef
Inherited from
Any
Ungrouped