Skip to content

Commit

Permalink
fixed parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
racinmat committed Feb 24, 2021
1 parent 01f4c34 commit c1d5050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/schema_examination.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function string_multi_representation_scalar_extractor()
e -> MultipleRepresentation((
ExtractCategorical(top_n_keys(e, 20)),
extractscalar(unify_types(e), e)
))
], JsonGrinder.default_scalar_extractor()))
)))
], JsonGrinder.default_scalar_extractor())
end

top_n_keys(e::Entry, n::Int) = map(x->x[1], sort(e.counts |> collect, by=x->x[2], rev=true)[begin:min(n, end)])
Expand Down

0 comments on commit c1d5050

Please sign in to comment.