haystack/haystack/utils/__init__.py
tstadel e13df4b22b
Implement Context Matching (#2293)
* first context_matching impl

* Update Documentation & Code Style

* sort matches

* fix matching bugs

* Update Documentation & Code Style

* add match_contexts

* min_words added

* Update Documentation & Code Style

* rename matching.py to context_matching.py

* fix mypy

* added tests and heuristic for one-sided overlaps

* Update Documentation & Code Style

* add another noise test

* Update Documentation & Code Style

* improve boosting split overlaps

* add non parallel versions of match_context and match_contexts

* Update Documentation & Code Style

* fix pylint finding

* add tests for match_context and match_contexts

* fix typo

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-03-21 10:35:12 +01:00

22 lines
752 B
Python

from haystack.utils.preprocessing import convert_files_to_dicts, tika_convert_files_to_dicts
from haystack.utils.import_utils import fetch_archive_from_http
from haystack.utils.cleaning import clean_wiki_text
from haystack.utils.doc_store import (
launch_es,
launch_milvus,
launch_opensearch,
launch_weaviate,
stop_opensearch,
stop_service,
)
from haystack.utils.deepsetcloud import DeepsetCloud, DeepsetCloudError
from haystack.utils.export_utils import (
print_answers,
print_documents,
print_questions,
export_answers_to_csv,
convert_labels_to_squad,
)
from haystack.utils.squad_data import SquadData
from haystack.utils.context_matching import calculate_context_similarity, match_context, match_contexts