Next word prediction is a NLP task where a model predicts the most likely word to follow a given sequence of words or context. It aims to generate coherent and contextually relevant suggestions for the next word based on the patterns and relationships learned from training data.
- Download Pretrained Weights Here
Fig. 2: Model Training History.
query = ["سرمربی تیم ملی", 19]
string_ = Prediction(query)
print(string_)
# Output : سرمربی تیم ملی وزنهبرداری ایران اکنون از این کشور اعلام کرده است که نشان میدهد که به آن
query = ["این گونه از کرکسها", 5]
string_ = Prediction(query)
print(string_)
# Output : این گونه از کرکسها مانند بسیاری از پرندگان مشابه
Project is distributed under MIT License