langchain.llms.ai21.AI21PenaltyData¶
- class langchain.llms.ai21.AI21PenaltyData(*, scale: int = 0, applyToWhitespaces: bool = True, applyToPunctuations: bool = True, applyToNumbers: bool = True, applyToStopwords: bool = True, applyToEmojis: bool = True)[source]¶
Bases:
BaseModelParameters for AI21 penalty data.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param applyToEmojis: bool = True¶
- param applyToNumbers: bool = True¶
- param applyToPunctuations: bool = True¶
- param applyToStopwords: bool = True¶
- param applyToWhitespaces: bool = True¶
- param scale: int = 0¶