FileEncoding#
- class langchain_community.document_loaders.helpers.FileEncoding(
- encoding: str | None,
- confidence: float,
- language: str | None,
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
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
- Parameters:
encoding (str | None)
confidence (float)
language (str | None)
- 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.