Skip to content

classify() method does not return correct distribution #4

@timjzee

Description

@timjzee

I'm using the LaMachine virtual environment on Ponyland

classifier = timbl.TimblClassifier("pl_type.master", "-mO:I1 -k 5 -G 0")

Should return probability distribution that adds up to 1, but ...

classifier.classify(("administrateur", "n", "i", "=", "str", "a", "=", "t", "|", "r", "-", "-", "+", "r"))

returns:

{'EN': 1, 'S': 1}

But the same classifier returns the correct distribution if the test() method is used instead:

{ EN 0.0526316, S 0.947368 }

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions