Skip to content

Commit

Permalink
Change document attribute from text to content (#2352)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
julian-risch and github-actions[bot] authored Mar 23, 2022
1 parent 3b2001e commit cec0137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/_src/tutorials/tutorials/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tutorials/Tutorial1_Basic_QA_Pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -458,4 +458,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}

0 comments on commit cec0137

Please sign in to comment.