ioot17
Re:State-of-the-art text classification with universal language models
on Thursday May 17, 2018 @04:59PM (#17095709)
Yes, that's correct, it's similar to the mechanisms NY Times guys were using and I've been focusing on the datasets to feed the CRF with as it's what drives the whole thing. This is the output I've got based on your example:
[
{
"unit": "cup",
"input": "1$1/2 cups seedless red or green grapes",
"name": "red grapes",
"qty": "1$1/2",
"comment": "seedless or green"
}
]
Don't hesitate to try the API out by pasting some examples to the white box on the site and pressing the "Try it out!" button, it's interactive :)
Re:State-of-the-art text classification with universal language models
on Wednesday May 16, 2018 @02:57PM (#17085361)
CRF works quite well, it's actually what I utilize right now to approach recipe parsing on https://cookalo.com/. It's based on CRFsuite with Python bindings for data training on already labeled recipes. If you build your own app and want to do some comparison, feel free to run some benchmarks against it.