Change document attribute from text to content (#2352)

* Change document attribute from text to content

* Update Documentation & Code Style

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Julian Risch 2022-03-23 14:55:01 +01:00 committed by GitHub
parent 3b2001e66f
commit cec0137693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ dicts = convert_files_to_dicts(dir_path=doc_dir, clean_func=clean_wiki_text, spl
# If your texts come from a different source (e.g. a DB), you can of course skip convert_files_to_dicts() and create the dictionaries yourself.
# The default format here is:
# {
# 'text': "<DOCUMENT_TEXT_HERE>",
# 'content': "<DOCUMENT_TEXT_HERE>",
# 'meta': {'name': "<DOCUMENT_NAME_HERE>", ...}
# }
# (Optionally: you can also add more key-value-pairs here, that will be indexed as fields in Elasticsearch and

View File

@ -185,7 +185,7 @@
"# If your texts come from a different source (e.g. a DB), you can of course skip convert_files_to_dicts() and create the dictionaries yourself.\n",
"# The default format here is:\n",
"# {\n",
"# 'text': \"<DOCUMENT_TEXT_HERE>\",\n",
"# 'content': \"<DOCUMENT_TEXT_HERE>\",\n",
"# 'meta': {'name': \"<DOCUMENT_NAME_HERE>\", ...}\n",
"# }\n",
"# (Optionally: you can also add more key-value-pairs here, that will be indexed as fields in Elasticsearch and\n",
@ -458,4 +458,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}