Skip to content

Commit

Permalink
chore: revert wip dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ndabAP committed Feb 25, 2023
1 parent 99d94be commit 9d9e27c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions normalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,3 @@ func Threshold(dists map[tokenize.Token][]float64, threshold float64) {
}
}
}

var EnglishDictonary = map[tokenize.PoS]func(tokenize.Token) bool{}

func Dictonary(dists map[tokenize.Token][]float64, dict map[tokenize.PoS]func(tokenize.Token) bool) {
for tok := range dists {
f, ok := dict[tok.PoS]
if !ok {
continue
}

if !f(tok) {
delete(dists, tok)
}
}
}

func LoadDict() error {
return nil
}

0 comments on commit 9d9e27c

Please sign in to comment.