Re:Show HN: Over 2M cooking recipes ready for text generation
by desmap on Wednesday December 09, 2020 @05:58AM
(#25357362)
FWIW, I'm no fan of giving my email either, so I tried to load the transformer on my own system. Would you mind to put a bit more, eg an example, than just following three lines there?
FYI, I got this from running above lines:
FYI2, I just entered on your huggingface page "Get salt, apples and sugar and you get" and got "Get salt, apples and sugar and you get a soft, sticky mess. Then add water, add a lemon or lime and add a 1/8 teaspoon vanilla. Add a pinch of cinnamon and a dash of nutmeg. When you are ready", where is the recipe, what is this?? A bit more docs would be nice...
[ Parent
| on HN ]
Re:Show HN: Over 2M cooking recipes ready for text generation
by mbien on Wednesday December 09, 2020 @06:11AM
(#25357424)
Hi, after gathering the model and tokenizer, you can use the generic huggingface tutorial for text generation: https://huggingface.co/blog/how-to-generate
We use custom control tokens, so you have to provide the specific structure of the recipe, simply typing it in the huggingface prompt won't work. The details are available in our papers about the solution.
Re:Show HN: Over 2M cooking recipes ready for text generation
by desmap on Wednesday December 09, 2020 @06:14AM
(#25357450)
> in our papers
A link would be kind.
Re:Show HN: Over 2M cooking recipes ready for text generation
by mbien on Wednesday December 09, 2020 @06:18AM
(#25357471)
Short version: https://www.aclweb.org/anthology/2020.inlg-1.4.pdf
Long version: https://www.researchgate.net/publication/345308878_Cooking_r...
They're both in README.md