#coding=utf8
import numpy as np
from sklearn.naive_bayes import GaussianNB
x_training = np.array([['привет'], ['hello'], ['generation'], ['путешествие']])
y_training = np.array(['ru', 'en', 'en', 'ru'])
clf = GaussianNB()
clf.fit(x_training, y_training)
print(clf.predict(np.array(['при'])))