Skip to content

resolve ties in scoring best term suggestions#25

Open
wamuir wants to merge 1 commit into
sajari:masterfrom
wamuir:master
Open

resolve ties in scoring best term suggestions#25
wamuir wants to merge 1 commit into
sajari:masterfrom
wamuir:master

Conversation

@wamuir

@wamuir wamuir commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

Tests randomly fail because big and biggest score the same against bigge (e.g., same edit distance). This is random because map[string]*Potential is unordered. I am proposing here to range over the map after sorting by term. From my testing, go test now consistently passes.

@wamuir

wamuir commented Jul 26, 2020

Copy link
Copy Markdown
Contributor Author

fixes #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant