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
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 (str | None) โ
confidence (float) โ
language (str | None) โ
- __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.