cc
.
factorie
.
app
.
nlp
.
embeddings
VocabBuilder
class
VocabBuilder
extends
AnyRef
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
VocabBuilder
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
VocabBuilder
(
vocab_hash_size:
Int
=
2.0E7.toInt
,
sampling_table_size:
Int
=
1.0E8.toInt
,
load_factor:
Double
=
0.7
)
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
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
def
addWordToVocab
(
key:
String
)
:
Unit
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
buildSamplingTable
()
:
Unit
def
buildSubSamplingTable
(
sample:
Double
)
:
Unit
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
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
getCount
(
id:
Int
)
:
Int
def
getCount
(
word:
String
)
:
Int
def
getId
(
word:
String
)
:
Int
def
getRandWord
()
:
String
def
getRandWordId
()
:
Int
def
getSubSampleProb
(
id:
Int
)
:
Double
def
getWord
(
id:
Int
)
:
String
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
loadVocab
(
filename:
String
)
:
Unit
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
saveVocab
(
filename:
String
)
:
Unit
def
size
()
:
Int
def
sortVocab
(
min_count:
Int
=
5
,
max_count:
Int
=
200
)
:
Unit
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
trainWords
()
:
Long
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