chunkipy.size_estimators.char_size_estimator

Classes

CharSizeEstimator()

Size estimator that counts the number of characters in the text.

class chunkipy.size_estimators.char_size_estimator.CharSizeEstimator[source]

Bases: BaseSizeEstimator

Size estimator that counts the number of characters in the text.

estimate_size(text)[source]

Estimate the size of the given text by counting the number of characters.

Parameters:

text (str) – The text to estimate the size of.

Returns:

The estimated size of the text in characters.

Return type:

int