package bert
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- bert
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
Value Members
- def makeMaskForMaskedLanguageModel(bertTokens: Array[Int], maximumTokenId: Int, clsToken: Int, sepToken: Int, maskToken: Int, rng: Random): (Array[Int], Array[Int], Array[Int])
- def minibatchesFromFull(minibatchSize: Int, dropLast: Boolean, fullData: BertData, rng: Random): BatchStream[BertLossInput, Int]
- def pad(v: Array[Int], paddedLength: Int, padElem: Int): Array[Int]
- def prepareFullDatasetFromTokenizedParagraphs[S](paragraphs: Vector[Vector[Array[Int]]], maximumTokenId: Int, clsToken: Int, sepToken: Int, padToken: Int, maskToken: Int, maxLength: Int, rng: Random)(implicit arg0: Sc[S]): BertData
- def prepareParagraph[S](paragraph: Vector[Array[Int]], maximumTokenId: Int, clsToken: Int, sepToken: Int, padToken: Int, maskToken: Int, maxLength: Int, rng: Random)(implicit arg0: Sc[S]): Vector[(Boolean, STen, STen, STen, STen)]