如何用 "real" 个案例测试我的自然语言处理模型?
How can I test my natural language processing model with "real" cases?
我正在向自己介绍 Natural Languaje Processing 和人工神经网络,我已经关注了这个精彩 tutorial
完成后,我想知道是否有任何方法可以用我可以发明的短语来测试模型,例如(那部电影让我很开心)。
因为知道在测试集上的成功率很好,但是我想知道怎么测试。
尝试
test_phrase = 'That film entertained me a lot'
example = vectorizer.transform([test_phrase])
print(test_phrase + ' was classified as ' + str(classifier.predict(example)))
我正在向自己介绍 Natural Languaje Processing 和人工神经网络,我已经关注了这个精彩 tutorial 完成后,我想知道是否有任何方法可以用我可以发明的短语来测试模型,例如(那部电影让我很开心)。 因为知道在测试集上的成功率很好,但是我想知道怎么测试。
尝试
test_phrase = 'That film entertained me a lot'
example = vectorizer.transform([test_phrase])
print(test_phrase + ' was classified as ' + str(classifier.predict(example)))