Introduction - If you have any usage issues, please Google them yourself
knn nearest neighbor algorithm in the given text, to consider in the training text set with the new text from the nearest (most similar), K-chapter text, according to the category of K chapter text to determine the category of new text, the specific steps of the algorithm as follows: a: re-description based on the feature set of training text vector to determine the vector of the new text: new text arrives, according to the new text of the characteristic word word said three: in the training text set to elect the most similar to the new text the K-text