class
LemmatizeEmbeddings extends AnyRef
Instance Constructors
-
new
LemmatizeEmbeddings(frequencyFile: String, embeddingFile: String)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
add(e: HashMap[String, Array[Double]], lemma: String, v: Array[Double]): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
divide(v: Array[Double], s: Double): Unit
-
val
embeddingFile: String
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
val
frequencies: Map[String, Double]
-
val
frequencyFile: String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
lemmatize(): Map[String, Array[Double]]
-
def
loadEmbeddings(): Map[String, Array[Double]]
-
def
loadFreqFile(): Map[String, Double]
-
def
multiply(v: Array[Double], s: Double): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
val
wordEmbeddings: Map[String, Array[Double]]
Inherited from AnyRef
Inherited from Any
Generates embeddings for lemmas, by averaging GloVe embeddings for words that have the same lemma The averaging of embedding vectors is weighted by the frequency of the corresponding words in Gigaword