Uses of Enum Class
opennlp.dl.vectors.PaddingStrategy
Packages that use PaddingStrategy
-
Uses of PaddingStrategy in opennlp.dl.vectors
Subclasses with type arguments of type PaddingStrategy in opennlp.dl.vectorsModifier and TypeClassDescriptionenumHowSentenceVectorsDL.embedAll(List)shapes the tensors of one inference when the texts of a call differ in tokenized length.Fields in opennlp.dl.vectors declared as PaddingStrategyModifier and TypeFieldDescriptionstatic final PaddingStrategySentenceVectorsDL.DEFAULT_CPU_PADDINGThePaddingStrategyon the CPU, or on a GPU for a pooled output, if none is given.static final PaddingStrategySentenceVectorsDL.DEFAULT_GPU_PADDINGThePaddingStrategyon a GPU if none is given and the model has no pooled output, so padding is masked out of the pooling, and the vocabulary has a padding token.Methods in opennlp.dl.vectors that return PaddingStrategyModifier and TypeMethodDescriptionSentenceVectorsOptions.padding()Returns the value of thepaddingrecord component.static PaddingStrategyReturns the enum constant of this class with the specified name.static PaddingStrategy[]PaddingStrategy.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in opennlp.dl.vectors with parameters of type PaddingStrategyModifierConstructorDescriptionSentenceVectorsOptions(Pooling pooling, boolean normalize, int maxLength, PaddingStrategy padding) Creates vector settings after validating the pooling mode, maximum length and padding strategy.