Describe the reason for these changes and the problem that they solve
By highlighting and surfacing the verbs contained in recipe direction text we can prepare to present user-facing assistance during meal preparation.
Briefly summarize the changes
Add the spacy library as a system-level dependency
Download the en_core_web_smspacy language model to the application, selected based on minimal size impact on the container image (other, more accurate models are available albeit with a larger size as a tradeoff)
Load the NLP model at application start-time
Tag verbs in direction text and include these tags in the API response markup field
Describe the reason for these changes and the problem that they solve
By highlighting and surfacing the verbs contained in recipe direction text we can prepare to present user-facing assistance during meal preparation.
Briefly summarize the changes
spacy
library as a system-level dependencyen_core_web_sm
spacy
language model to the application, selected based on minimal size impact on the container image (other, more accurate models are available albeit with a larger size as a tradeoff)markup
fieldHow have the changes been tested?