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
433a26df
Unverified
Commit
433a26df
authored
Jun 12, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ElEve...
parent
8c5e48a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Eleve.hs
src/Gargantext/Text/Eleve.hs
+7
-1
No files found.
src/Gargantext/Text/Eleve.hs
View file @
433a26df
...
...
@@ -362,6 +362,9 @@ chunkAlongEleve n xs = L.take n <$> L.tails xs
toToken'
::
Int
->
[[
Text
]]
->
[[
Token
]]
toToken'
n
input
=
L
.
concat
$
(
filter
(
/=
[
Terminal
Stop
])
.
chunkAlongEleve
(
n
+
2
))
<$>
toToken
<$>
input
toTokenR'
::
Int
->
[[
Text
]]
->
[[
Token
]]
toTokenR'
n
input
=
L
.
concat
$
(
filter
(
/=
[
Terminal
Start
])
.
chunkAlongEleve
(
n
+
2
)
.
reverse
)
<$>
toToken
<$>
input
---------------------------------------------
{-
set_entropy_vars :: Entropy e => Getting e i e -> (e -> i -> o) -> Tries Token i -> Trie Token o
...
...
@@ -415,7 +418,10 @@ testEleve debug n output checks = do
inp
=
toToken
<$>
input
t
::
Tries
Token
Double
t
=
buildTrie
(
toToken'
n
input
)
t
=
-- buildTrie (toToken' n input)
Tries
{
_fwd
=
buildTrie
(
toToken'
n
input
)
,
_bwd
=
buildTrie
(
toTokenR'
n
input
)
}
evt
::
Tries
Token
(
I
Double
)
evt
=
evTrie
identity
set_entropy_var
t
...
...
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