langchain_community.document_loaders.helpers.FileEncoding¶
- class langchain_community.document_loaders.helpers.FileEncoding(encoding: Optional[str], confidence: float, language: Optional[str])[source]¶
File encoding as the NamedTuple.
Create new instance of FileEncoding(encoding, confidence, language)
Attributes
confidenceThe confidence of the encoding.
encodingThe encoding of the file.
languageThe language of the file.
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
- Parameters
encoding (Optional[str]) –
confidence (float) –
language (Optional[str]) –
- __init__()¶
- count(value, /)¶
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.