Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ngram
ngram.load()
while True:
user_input = input("Enter word to test: ")
print(ngram.get_unigram_score("<s>", user_input))
</s>
def load():
ngram.load()