kyu999 / biovec

A new approach for representing biological sequences
https://pypi.org/project/biovec/
99 stars 33 forks source link

Train model using corpus #13

Open rajgar114 opened 3 years ago

rajgar114 commented 3 years ago

I have my corpus file. I need to train the model from this corpus file. I used the method described below -

pv = biovec.models.ProtVec( corpus="output_corpusfile_path.txt", n=3)

but this didn't worked. Is there any way to train model directly from the corpus i.e without using fasta representation?

devhimd19 commented 3 years ago

raise Exception("Model has never trained this n-gram: " + ngram) Exception: Model has never trained this n-gram: WNA

How to rectify this

kyu999 commented 3 years ago

@rajgar114 Could you show me more details like error message?