KoichiYasuoka commited on
Commit
6c0dc23
1 Parent(s): ef65075
Files changed (1) hide show
  1. maker.py +2 -1
maker.py CHANGED
@@ -2,7 +2,7 @@
2
  src="jerteh/gpt2-orao"
3
  tgt="KoichiYasuoka/gpt2-large-serbian-upos"
4
 
5
- import os
6
  from transformers import AutoTokenizer,AutoConfig,GPT2ForTokenClassification,DataCollatorForTokenClassification,TrainingArguments,Trainer
7
  from tokenizers.pre_tokenizers import Sequence,Punctuation
8
  for d in ["UD_Serbian-SET","UD_Croatian-SET"]:
@@ -73,3 +73,4 @@ trn=Trainer(args=arg,data_collator=DataCollatorForTokenClassification(tkz),model
73
  trn.train()
74
  trn.save_model(tgt)
75
  tkz.save_pretrained(tgt)
 
 
2
  src="jerteh/gpt2-orao"
3
  tgt="KoichiYasuoka/gpt2-large-serbian-upos"
4
 
5
+ import os,sys
6
  from transformers import AutoTokenizer,AutoConfig,GPT2ForTokenClassification,DataCollatorForTokenClassification,TrainingArguments,Trainer
7
  from tokenizers.pre_tokenizers import Sequence,Punctuation
8
  for d in ["UD_Serbian-SET","UD_Croatian-SET"]:
 
73
  trn.train()
74
  trn.save_model(tgt)
75
  tkz.save_pretrained(tgt)
76
+ os.system(sys.executable+" -m esupar.train "+tgt+" "+tgt+" 16 /// train.conllu dev.conllu test.conllu")