Skip to content

Commit cef3e59

Browse files
committed
Docs: Update docs for postprocessing to mention merging of names ending with IN/DT/JJ tag
1 parent 472cbee commit cef3e59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/explanation/postprocessing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ The post-processing to obtain the ingredient names is similar to above, but with
4848
#. Each NAME_VAR group is prepended to the beginning of the previous B_NAME_TOK group.
4949
#. Each NAME_MOD group is prepended to all previous B_NAME_TOK or NAME_VAR+B_NAME_TOK groups.
5050

51-
#. Post-process these groups of indices as above, noting that the first two steps are already completed.
51+
#. Post-process these groups of indices as per the other, non-name labels, noting that the first two steps are already completed.
52+
#. If there are multiple names, check the part of speech tag for the last token in each name.
53+
If the part of speech tag is IN, DT or JJ, merge the name with the next name.
5254

5355
The output of this function is a list of :class:`IngredientText` objects, one for each ingredient names.
5456

0 commit comments

Comments
 (0)