Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
737b0865
Unverified
Commit
737b0865
authored
Jun 06, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eleve...
parent
8d15e43f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Eleve.hs
src/Gargantext/Text/Eleve.hs
+4
-4
No files found.
src/Gargantext/Text/Eleve.hs
View file @
737b0865
...
...
@@ -380,10 +380,10 @@ testEleve debug n output checks = do
-- nt = normalizeEntropy' info_entropy (\f -> info_norm_entropy' %~ f) nt
nt
=
normalizeEntropy
identity
set_autonomy
t
check
f
msg
x
y
=
if
f
x
y
then
P
.
putStrLn
$
" PASS "
<>
msg
<>
" "
<>
show
x
<>
" ~= "
<>
show
y
else
P
.
putStrLn
$
" FAIL "
<>
msg
<>
"
"
<>
show
x
<>
" /= "
<>
show
y
check
f
msg
ref
m
y
=
if
f
ref
m
y
then
P
.
putStrLn
$
" PASS "
<>
msg
<>
" "
<>
show
ref
else
P
.
putStrLn
$
" FAIL "
<>
msg
<>
"
ref="
<>
show
ref
<>
" my="
<>
show
m
y
checker
(
ngram
,
count
,
entropy
,
_ev
,
autonomy
,
bwd_entropy
,
fwd_entropy
)
=
do
let
ns
=
parseToken
<$>
T
.
words
ngram
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment