Skip to content

Spanish ingredient-parser #14

Answered by strangetom
theripnono asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @theripnono

The command to train a new model is

python train.py train --database train/data/training.sqlite3

For this to work well you will need to do a few things:

  1. Create a database of training data, or modify the existing one. The database contains a table called training, which has the following fields:
  • id: a unique ID for each sentence (this isn't used for training)

  • source: where the sentence came from (this isn't used for training)

  • sentence: the ingredient sentence

  • tokens: the list of tokens from the sentence

  • labels: the list of labels for each token in the sentence

    The hard part is making sure all the labels are correct and consistent.

  1. Consider any modifications t…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@theripnono
Comment options

Answer selected by theripnono
Comment options

You must be logged in to vote
3 replies
@strangetom
Comment options

@theripnono
Comment options

@strangetom
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@strangetom
Comment options

@theripnono
Comment options

@strangetom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants