|
|
None | __init__ (self) |
| |
| None | reset (self) |
| |
| None | feed (self, Union[bytes, bytearray] char, int char_len) |
| |
| float | get_confidence (self) |
| |
|
bool | got_enough_data (self) |
| |
|
int | get_order (self, Union[bytes, bytearray] _) |
| |
|
|
| typical_distribution_ratio |
| |
|
|
int | ENOUGH_DATA_THRESHOLD = 1024 |
| |
|
float | SURE_YES = 0.99 |
| |
|
float | SURE_NO = 0.01 |
| |
|
int | MINIMUM_DATA_THRESHOLD = 3 |
| |
|
|
| _table_size |
| |
|
| _done |
| |
|
| _total_chars |
| |
|
| _freq_chars |
| |
◆ feed()
| None pip._vendor.chardet.chardistribution.CharDistributionAnalysis.feed |
( |
|
self, |
|
|
Union[bytes, bytearray] |
char, |
|
|
int |
char_len |
|
) |
| |
feed a character with known length
◆ get_confidence()
| float pip._vendor.chardet.chardistribution.CharDistributionAnalysis.get_confidence |
( |
|
self | ) |
|
return confidence based on existing data
◆ reset()
| None pip._vendor.chardet.chardistribution.CharDistributionAnalysis.reset |
( |
|
self | ) |
|
reset analyser, clear any state
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/chardet/chardistribution.py