Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
146
Issues
146
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
haskell-gargantext
Commits
d1dfbf79
Verified
Commit
d1dfbf79
authored
Dec 30, 2024
by
Przemyslaw Kaminski
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ngrams] one more simplification in ngramsByDoc'
parent
fcb48b8f
Pipeline
#7174
failed with stages
in 13 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Utils.hs
src/Gargantext/Database/Action/Flow/Utils.hs
+5
-2
No files found.
src/Gargantext/Database/Action/Flow/Utils.hs
View file @
d1dfbf79
...
...
@@ -224,8 +224,11 @@ ngramsByDoc' :: Lang
ngramsByDoc'
l
nt
ts
doc
=
HashMap
.
map
(
\
cnt
->
DM
.
singleton
nt
$
DM
.
singleton
nId
(
1
,
cnt
))
extractedMap
where
_docNgrams'
::
([(
MatchedText
,
TermsCount
)],
NodeId
)
_docNgrams'
@
(
matched
,
nId
)
=
(
docNgrams
l
ts
doc
,
doc
^.
context_oid_id
)
matched
::
[(
MatchedText
,
TermsCount
)]
matched
=
docNgrams
l
ts
doc
nId
::
NodeId
nId
=
doc
^.
context_oid_id
withExtractedNgrams
::
[(
ExtractedNgrams
,
TermsCount
)]
withExtractedNgrams
=
first
(
SimpleNgrams
.
text2ngrams
)
<$>
matched
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
03b33383
·
Jan 30, 2025
mentioned in commit
03b33383
mentioned in commit 03b33383dd67c1821a4edb4628923cf7bd039d90
Toggle commit list
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