Update README.md
Browse filessome more detailed explanations
50 unmodified lines5152535455565758596061626350 unmodified lines* KenLM: `pip install https://github.com/kpu/kenlm/archive/master.zip`* SentencePiece: `pip install sentencepiece`# Example:```from model import KenlmModel# Load model trained on English wikipediamodel = KenlmModel.from_pretrained("wikipedia", "en")# Get perplexitymodel.get_perplexity("I am very perplexed")50 unmodified lines51525354555657585960616263646550 unmodified lines* KenLM: `pip install https://github.com/kpu/kenlm/archive/master.zip`* SentencePiece: `pip install sentencepiece`# Example:```from model import KenlmModel # KenlmModel comes from the model.py file at the root of this hf directory.# Load model trained on English wikipediamodel = KenlmModel.from_pretrained("wikipedia", "en") # You need to download the following files first: en.arpa.bin, en.sp.model and en.sp.vocab from the hf repo# Get perplexitymodel.get_perplexity("I am very perplexed")
README.md+4-2