Constructs a new TrainerSpec.
Optionalproperties: ITrainerSpecProperties to set
TrainerSpec acceptLanguage.
TrainerSpec allowWhitespaceOnlyPieces.
TrainerSpec bosId.
TrainerSpec bosPiece.
TrainerSpec byteFallback.
TrainerSpec characterCoverage.
TrainerSpec controlSymbols.
TrainerSpec differentialPrivacyClippingThreshold.
TrainerSpec differentialPrivacyNoiseLevel.
TrainerSpec enableDifferentialPrivacy.
TrainerSpec eosId.
TrainerSpec eosPiece.
TrainerSpec hardVocabLimit.
TrainerSpec input.
TrainerSpec inputFormat.
TrainerSpec inputSentenceSize.
TrainerSpec maxSentenceLength.
TrainerSpec maxSentencepieceLength.
TrainerSpec miningSentenceSize.
TrainerSpec modelPrefix.
TrainerSpec modelType.
TrainerSpec numSubIterations.
TrainerSpec numThreads.
TrainerSpec padId.
TrainerSpec padPiece.
TrainerSpec pretokenizationDelimiter.
TrainerSpec requiredChars.
TrainerSpec seedSentencepiecesFile.
TrainerSpec seedSentencepieceSize.
TrainerSpec selfTestSampleSize.
TrainerSpec shrinkingFactor.
TrainerSpec shuffleInputSentence.
TrainerSpec splitByNumber.
TrainerSpec splitByUnicodeScript.
TrainerSpec splitByWhitespace.
TrainerSpec splitDigits.
TrainerSpec trainExtremelyLargeCorpus.
TrainerSpec trainingSentenceSize.
TrainerSpec treatWhitespaceAsSuffix.
TrainerSpec unkId.
TrainerSpec unkPiece.
TrainerSpec unkSurface.
TrainerSpec useAllVocab.
TrainerSpec userDefinedSymbols.
TrainerSpec vocabSize.
TrainerSpec vocabularyOutputPieceScore.
Converts this TrainerSpec to JSON.
JSON object
StaticcreateCreates a new TrainerSpec instance using the specified properties.
Optionalproperties: ITrainerSpecProperties to set
TrainerSpec instance
StaticdecodeDecodes a TrainerSpec message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
TrainerSpec
StaticdecodeDecodes a TrainerSpec message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
TrainerSpec
StaticencodeEncodes the specified TrainerSpec message. Does not implicitly verify messages.
TrainerSpec message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified TrainerSpec message, length delimited. Does not implicitly verify messages.
TrainerSpec message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a TrainerSpec message from a plain object. Also converts values to their respective internal types.
Plain object
TrainerSpec
StaticgetGets the default type url for TrainerSpec
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a TrainerSpec message. Also converts values to other types if specified.
TrainerSpec
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a TrainerSpec message.
Plain object to verify
null if valid, otherwise the reason why it is not
Represents a TrainerSpec.