by strong_ai · 11y ago · 0 comments
from sklearn.neighbors import KNeighborsClassifier
# Create a sperate neural network for each identifier
for index in range(0, len(NaturalLanguageObject._Identifiers)):
nn = KNeighborsClassifier()
self._Networks.append(nn)He mentions that he used sklearn's Neural Network libraries in his blog post, but sklearn doesn't have any aside from RBM.
What the hell.
it must be a robust tool.
Wow.
There's some good reasons to think this approach won't work at all. If I understand it correctly I think it is attempting to predict part of speech using previously observed values.
That's an interesting idea, and might be somewhat valuable as a feature to use in a text generator, but on its own won't be enough to ever generate sentences that make sense (because some specific sequences just don't make sense).