Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. # Train a model with existing data, use active learning to get more annotations
  2. prodigy train ner t0 en_vectors_web_lg --output t0m
  3. prodigy ner.teach t1-silver t0m data.jsonl --label FOO,BAR
  4. prodigy ner.silver-to-gold t1-gold t1-silver t0m --label FOO,BAR
  5.  
  6. # Merge all annotations together into a new dataset
  7. prodigy db-merge t0,t1-gold t1
  8.  
  9. # Train a model with existing data, use active learning to get more annotations
  10. prodigy train ner t1 en_vectors_web_lg --output t1m
  11. prodigy ner.teach t2-silver t1m data.jsonl --label FOO,BAR
  12. prodigy ner.silver-to-gold t2-gold t2-silver t1m --label FOO,BAR
  13.  
  14. # Merge all annotations together into a new dataset
  15. prodigy db-merge t0,t1-gold,t2-gold t2
  16.  
  17. # Train a model with existing data, use active learning to get more annotations
  18. prodigy train ner t2 en_vectors_web_lg --output t2m
  19. prodigy ner.teach t3-silver t3m data.jsonl --label FOO,BAR
  20. prodigy ner.silver-to-gold t3-gold t3-silver t2m --label FOO,BAR
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement