Class NoBadWordsLogitsProcessor
java.lang.Object
chat.octet.model.components.processor.impl.NoBadWordsLogitsProcessor
- All Implemented Interfaces:
LogitsProcessor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoBadWordsLogitsProcessor
public NoBadWordsLogitsProcessor(int[] badWordsTokenIds)
-
-
Method Details
-
processor
Description copied from interface:LogitsProcessorLogits processor- Specified by:
processorin interfaceLogitsProcessor- Parameters:
inputTokenIds- Indices of input sequence tokens in the vocabulary.scores- Prediction scores of a language modeling head. These can be logits for each vocabulary.args- Specific args to a logits processor.- Returns:
- float[] The processed prediction scores.
-