FileEncoding#
- class langchain_community.document_loaders.helpers.FileEncoding(encoding: str | None, confidence: float, language: str | None)[source]#
File encoding as the NamedTuple.
Create new instance of FileEncoding(encoding, confidence, language)
Attributes
confidence
The confidence of the encoding.
encoding
The encoding of the file.
language
The 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.