Skip to content

Commit 3919e45

Browse files
authored
docs: clarify language classification step in tutorial 32 (#424)
* docs: clarify language classification step in tutorial 32 * docs: clarify language classification step in tutorial 32
1 parent 990a259 commit 3919e45

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tutorials/32_Classifying_Documents_and_Queries_by_Language.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@
159159
"id": "d9fyP-ThRTue"
160160
},
161161
"source": [
162+
"In this step, we configure the language classification component that will detect and route documents based on their language\n",
163+
"\n",
162164
"The `DocumentLanguageClassifier` takes a list of languages. The `MetadataRouter` needs a dictionary of rules. These rules specify which node to route a document to (in this case, which language-specific `DocumentWriter`), based on the document's metadata.\n",
163165
"\n",
164-
"The keys of the dictionary are the names of the output connections, and the values are dictionaries that follow the format of [filtering expressions in Haystack.](https://docs.haystack.deepset.ai/docs/metadata-filtering).\n"
166+
"The keys of the dictionary are the names of the output connections, and the values are dictionaries that follow the format of [filtering expressions in Haystack.](https://docs.haystack.deepset.ai/docs/metadata-filtering)."
165167
]
166168
},
167169
{
@@ -687,4 +689,4 @@
687689
},
688690
"nbformat": 4,
689691
"nbformat_minor": 0
690-
}
692+
}

0 commit comments

Comments
 (0)