object
Utils
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
val
EOS_WORD: String
-
val
LOG_MIN_VALUE: Float
-
val
RANDOM_SEED: Long
-
val
START_TAG: String
-
val
STOP_TAG: String
-
val
UNK_WORD: String
-
val
WEIGHT_DECAY: Float
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
concatenateStates(l1: Iterable[Expression], l2: Iterable[Expression]): Iterable[Expression]
-
def
emissionScoresToArrays(expressions: Iterable[Expression]): Array[Array[Float]]
-
def
emissionScoresToArraysAllTasks(expressions: Array[ExpressionVector]): Array[Array[Array[Float]]]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
expressionDropout(expression: Expression, dropoutProb: Float, doDropout: Boolean): Expression
-
def
finalize(): Unit
-
def
fromIndexToChar(s2i: Map[Char, Int]): Array[Char]
-
def
fromIndexToString(s2i: Map[String, Int]): Array[String]
-
final
def
getClass(): Class[_]
-
def
greedyPredict(lattice: Array[Array[Float]]): Array[Int]
-
def
hashCode(): Int
-
def
initializeDyNet(autoBatch: Boolean = false, mem: String = ""): Unit
-
def
initializeEmbeddings(w2v: WordEmbeddingMap, w2i: Map[String, Int], lookupParameters: LookupParameter): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
def
loadParameters(dynetFilename: String, modelParameters: ParameterCollection, key: String = "/all"): Unit
-
def
mkCharacterEmbedding(word: String, c2i: Map[Char, Int], charLookupParameters: LookupParameter, charFwRnnBuilder: RnnBuilder, charBwRnnBuilder: RnnBuilder): Expression
-
def
mkDynetFilename(baseFilename: String): String
-
def
mkPartitionScore(emissionScoresForSeq: ExpressionVector, transitionMatrix: ExpressionVector, startTag: Int, stopTag: Int): Expression
-
def
mkTransitionMatrix(parameters: ParameterCollection, t2i: Map[String, Int]): LookupParameter
-
def
mkWordVocab(w2v: WordEmbeddingMap): Map[String, Int]
-
def
mkX2iFilename(baseFilename: String): String
-
final
def
ne(arg0: AnyRef): Boolean
-
def
newPrintWriter(filename: String): PrintWriter
-
def
newSource(filename: String): Source
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
pick2D(matrix: ExpressionVector, row: Int, column: Int): Expression
-
def
printCoNLLOutput(pw: PrintWriter, words: IndexedSeq[String], golds: IndexedSeq[String], preds: IndexedSeq[String]): Unit
-
def
printTagScores(header: String, scores: Array[Float], i2t: Array[String]): Unit
-
def
readString2Ids(s2iFilename: String): Map[String, Int]
-
def
save(printWriter: PrintWriter, value: String, comment: String): Unit
-
def
save(printWriter: PrintWriter, value: Long, comment: String): Unit
-
def
save[T](printWriter: PrintWriter, values: Array[T], comment: String): Unit
-
def
save[T](printWriter: PrintWriter, values: Counter[T], comment: String)(implicit arg0: (T) ⇒ Ordered[T]): Unit
-
def
save[T](printWriter: PrintWriter, values: Map[T, Int], comment: String)(implicit arg0: (T) ⇒ Ordered[T]): Unit
-
def
saveCharMap(printWriter: PrintWriter, values: Map[Char, Int], comment: String): Unit
-
def
sentenceLossCrf(emissionScoresForSeq: ExpressionVector, transitionMatrix: ExpressionVector, golds: IndexedSeq[Int], t2i: Map[String, Int]): Expression
-
def
sentenceLossGreedy(emissionScoresForSeq: ExpressionVector, golds: IndexedSeq[Int]): Expression
-
def
sentenceScore(emissionScoresForSeq: ExpressionVector, transitionMatrix: ExpressionVector, tagCount: Int, tagSeq: IndexedSeq[Int], startTag: Int, stopTag: Int): Expression
-
def
setRnnDropout(rnnBuilder: RnnBuilder, dropoutProb: Float, doDropout: Boolean): Unit
-
def
srlPredict(lattice: Array[Array[Float]], predPosition: Int, oId: Int): Array[Int]
-
def
stringToChar(string: String): Char
-
def
stringToCharInt(string: String): Char
-
def
stringToString(string: String): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toIds[T](tags: IndexedSeq[T], t2i: Map[T, Int]): IndexedSeq[Int]
-
def
toString(): String
-
def
transduce(embeddings: Iterable[Expression], builder: RnnBuilder): IndexedSeq[Expression]
-
def
transitionMatrixToArrays(trans: LookupParameter, size: Int): Array[Array[Float]]
-
def
viterbi(emissionScores: Array[Array[Float]], transitionMatrix: Array[Array[Float]], tagCount: Int, startTagIdx: Int, stopTagIdx: Int): Array[Int]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Utility methods used by DyNet applications