scrapinghub / python-crfsuite

A python binding for crfsuite
MIT License
770 stars 222 forks source link

knn crf / svm crf #102

Open samieti02 opened 5 years ago

samieti02 commented 5 years ago

Hello dear Sir,

how can we code a knn crf using the project?

with sklearn, we do something like this:

from sklearn import neighbors

clf = neighbors.KNeighborsClassifier(n_neighbors, weights=weights)
clf.fit(X, y)
Z = clf.predict(Y_)

How can we use or combine it with CRF ?

Thanks

samieti02 commented 5 years ago

dear Sir,

can you give us please some tips?

Thanks

samieti02 commented 5 years ago

I am just wondering if there is someone that can help us