From dfd9870bcdb45f1c905c8dd4ee72bb1774f5cc82 Mon Sep 17 00:00:00 2001 From: Timo Moeller Date: Tue, 3 Oct 2023 09:37:07 +0200 Subject: [PATCH] Remove language validation (#5948) --- haystack/utils/getting_started.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haystack/utils/getting_started.py b/haystack/utils/getting_started.py index 5a227b721..cd54e7169 100644 --- a/haystack/utils/getting_started.py +++ b/haystack/utils/getting_started.py @@ -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).