You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/explanation/postprocessing.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,10 @@ Iterate over the extract NAME labels and group consecutive labels of the same ty
86
86
87
87
When grouping the token together, we store the index and label of the tokens.
88
88
89
+
.. note::
90
+
91
+
The indices here are the indices of elements from the extracted NAME labels i.e. an index of 0 here is the first element of the extracted NAME labels which refers to the token at index 2 of the whole sentence.
92
+
89
93
For the example sentence, we get the following groups:
90
94
91
95
.. code:: python
@@ -109,10 +113,6 @@ This is more easily done by iterating in reverse over the groups and applying th
109
113
110
114
The output from this construction step are groups of indices, where each group represents an ingredient name.
111
115
112
-
.. note::
113
-
114
-
The indices here are the indices of elements from the extracted NAME labels i.e. an index of 0 here is the first element of the extracted NAME labels which refers to the token at index 2 of the whole sentence.
115
-
116
116
For the example sentence, the constructed groups of indices are:
0 commit comments