Skip to content

Bad probability calculations for the first word in a sentence #2

Description

@peturorri

When calculating the trigram probability of the first word in a sentence the returned value is the frequency of the trigram plus one, instead of the actual probability. Example:

In [96]: ng.prob("", "", "Í")
Out[96]: 595124.0000000003

In [97]: ng.freq("", "", "Í")
Out[97]: 595123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions