mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-30 08:37:20 +00:00
Remove language validation (#5948)
This commit is contained in:
parent
a933a42749
commit
dfd9870bcd
@ -65,7 +65,7 @@ def add_example_data(document_store, dir):
|
||||
output_dir=dir,
|
||||
)
|
||||
files_to_index = [dir + "/" + f for f in os.listdir(dir)]
|
||||
converter = TextConverter(remove_numeric_tables=True, valid_languages=["en"])
|
||||
converter = TextConverter(remove_numeric_tables=True)
|
||||
docs = [converter.convert(file_path=file, meta=None)[0] for file in files_to_index]
|
||||
else:
|
||||
# Here you can add a local folder with your files(.txt, .pdf, .docx).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user