chunkipy.size_estimators
- class chunkipy.size_estimators.BaseSizeEstimator[source]
Bases:
ABCBase class for size estimators.
- class chunkipy.size_estimators.CharSizeEstimator[source]
Bases:
BaseSizeEstimatorSize estimator that counts the number of characters in the text.
- class chunkipy.size_estimators.OpenAISizeEstimator(encoding='cl100k_base')[source]
Bases:
BaseSizeEstimatorSize estimator that uses OpenAI’s tokenization to estimate the size of the text.
- Parameters:
encoding (str)
- class chunkipy.size_estimators.WordSizeEstimator[source]
Bases:
BaseSizeEstimatorSize estimator that counts the number of words in the text.
Modules