根据python中的随机数对文本进行分类

时间:2018-12-06 23:48:05

标签: python-3.x tensorflow neural-network artificial-intelligence text-classification

我有一个包含300个元素的列表,分为:

total knee arthroplasty ......... 200 elements

minimally invasive total knee arthroplasty ..........50 elements

total knee arthroplasty visionaire .........15 elements

knee arthroscopy partial medial meniscectomy ..........10 elements

medial unicompartmental knee arthroplasty .........10 elements

total knee arthroplasty direct anterior approach.........10 elements

knee manipulation under anesthetic .........5 elements

我想做的是:

I want to write a model in Python (in my opinion a Neural Network) such 
that I want to train the model in a way by assigning a random number for 
each of these categories, so that in future if I get any of these 
statements or a similar statement, my model would be able to assign a 
the closest random number to it.

0 个答案:

没有答案