Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Return confidence/probability percentage from classifyTokens #10

Open
tptee opened this issue Dec 28, 2014 · 3 comments
Open

Return confidence/probability percentage from classifyTokens #10

tptee opened this issue Dec 28, 2014 · 3 comments
Milestone

Comments

@tptee
Copy link

tptee commented Dec 28, 2014

Hi,

Would be awesome if we could access a confidence level/percentage from ParsimmonNaiveBayesClassifer.classifyTokens method, maybe some easily-digestible human-friendly value.

@ayanonagon
Copy link
Owner

I agree. Thanks for the feedback! Always open for pull-requests as well. :octocat:

@ayanonagon
Copy link
Owner

@tptee Not sure if Swift is something that interests you, but I’m in the middle of making a Swift version of Parsimmon, and because Swift supports tuples, the API can be something like:

let (category, confidence) = classifier.classify("I swear that this is not spam")

which would be pretty slick I think. 😄

@tptee
Copy link
Author

tptee commented Feb 16, 2015

+1 looks awesome!

I don't have the NLP background to help with algorithms, but I'd love to contribute in some way to your Swift rewrite!

On Feb 15, 2015, at 11:44 AM, Ayaka Nonaka notifications@github.com wrote:

@tptee https://github.com/tptee Not sure if Swift is something that interests you, but I’m in the middle of making a Swift version of Parsimmon, and because Swift supports tuples, the API can be something like:

let (category, confidence) = classifier.classify("I swear that this is not spam")
which would be pretty slick I think.


Reply to this email directly or view it on GitHub #10 (comment).

@ayanonagon ayanonagon added this to the swift milestone Feb 22, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants