Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train on new model #8

Open
MikhailKlemin opened this issue Mar 24, 2018 · 1 comment
Open

Train on new model #8

MikhailKlemin opened this issue Mar 24, 2018 · 1 comment

Comments

@MikhailKlemin
Copy link

MikhailKlemin commented Mar 24, 2018

Hello!
I have read the closed issue about Spanish language, and I think I go idea how to retrain the model, but I am a little not sure

  • I should create my dataset/train folder with pos/neg and place the data there -- that clear
  • Then I create my_en.go file which walks that dataset I just created

And then I am not sure what I should do to make it Train, and save trained data and use it for analyzes?

@cdipaolo
Copy link
Owner

Hi Mikhail,

Yes the easiest thing to do would be to copy the en.go procedure for training an english model in a Spanish es.go file. That function would train the model and load it into memory, but ideally you would train both the English and Spanish models in memory, then persist the models map to disk into model.json, before using go-bindata as we already do to persist the file into the library (you'd replace the current bindata.go file in the library, committing the new version). Theoretically, everything should work from there but you'd want to add tests to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants