mirror of
https://github.com/facebook/duckling.git
synced 2024-11-24 07:23:03 +03:00
Fix excessive-free-point-style lint errors on Rank.hs
Summary: Just replace `.` with `$`, also tweaked the spacing a bit for skimmability Reviewed By: chessai Differential Revision: D28411898 fbshipit-source-id: d18b9ef5db99b82d150231080c89f812f709f409
This commit is contained in:
parent
3eafced0fa
commit
d6587dafbb
@ -57,9 +57,10 @@ rank
|
||||
-> [ResolvedToken]
|
||||
-> [ResolvedToken]
|
||||
rank classifiers targets tokens =
|
||||
Set.toList . Set.fromList
|
||||
. map (\(Candidate token _ _) -> token)
|
||||
. winners
|
||||
Set.toList
|
||||
$ Set.fromList
|
||||
$ map (\(Candidate token _ _) -> token)
|
||||
$ winners
|
||||
$ map makeCandidate tokens
|
||||
where
|
||||
makeCandidate :: ResolvedToken -> Candidate
|
||||
|
Loading…
Reference in New Issue
Block a user