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
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
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
43901901
Commit
43901901
authored
Oct 14, 2024
by
Alfredo Di Napoli
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in GargPorter implementation
parent
d44831d0
Pipeline
#6830
failed with stages
in 45 minutes and 57 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
230 additions
and
222 deletions
+230
-222
GargPorter.hs
...rgantext/Core/Text/Terms/Mono/Stem/Internal/GargPorter.hs
+226
-221
Table.hs
test/Test/API/Private/Table.hs
+2
-1
DocumentSearch.hs
test/Test/Database/Operations/DocumentSearch.hs
+2
-0
No files found.
src/Gargantext/Core/Text/Terms/Mono/Stem/Internal/GargPorter.hs
View file @
43901901
This diff is collapsed.
Click to expand it.
test/Test/API/Private/Table.hs
View file @
43901901
...
@@ -52,6 +52,7 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
...
@@ -52,6 +52,7 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
let
corpusId
=
_sctx_data
let
corpusId
=
_sctx_data
withApplication
_sctx_app
$
do
withApplication
_sctx_app
$
do
withValidLogin
_sctx_port
"alice"
(
GargPassword
"alice"
)
$
\
clientEnv
token
->
do
withValidLogin
_sctx_port
"alice"
(
GargPassword
"alice"
)
$
\
clientEnv
token
->
do
liftIO
$
do
liftIO
$
do
(
HashedResponse
_
tr1
)
(
HashedResponse
_
tr1
)
<-
checkEither
$
runClientM
(
get_table
token
<-
checkEither
$
runClientM
(
get_table
token
...
@@ -63,8 +64,8 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
...
@@ -63,8 +64,8 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
(
Just
$
RawQuery
"soy"
)
(
Just
$
RawQuery
"soy"
)
Nothing
Nothing
)
clientEnv
)
clientEnv
length
(
tr_docs
tr1
)
`
shouldBe
`
4
length
(
tr_docs
tr1
)
`
shouldBe
`
3
createSoySauceCorpus
::
SpecContext
()
->
IO
(
SpecContext
CorpusId
)
createSoySauceCorpus
::
SpecContext
()
->
IO
(
SpecContext
CorpusId
)
createSoySauceCorpus
ctx
@
SpecContext
{
..
}
=
do
createSoySauceCorpus
ctx
@
SpecContext
{
..
}
=
do
...
...
test/Test/Database/Operations/DocumentSearch.hs
View file @
43901901
...
@@ -135,6 +135,8 @@ stemmingTest :: TestEnv -> Assertion
...
@@ -135,6 +135,8 @@ stemmingTest :: TestEnv -> Assertion
stemmingTest
_env
=
do
stemmingTest
_env
=
do
stem
EN
GargPorterAlgorithm
"Ajeje"
`
shouldBe
`
"Ajeje"
stem
EN
GargPorterAlgorithm
"Ajeje"
`
shouldBe
`
"Ajeje"
stem
EN
GargPorterAlgorithm
"PyPlasm:"
`
shouldBe
`
"PyPlasm:"
stem
EN
GargPorterAlgorithm
"PyPlasm:"
`
shouldBe
`
"PyPlasm:"
stem
EN
GargPorterAlgorithm
"soy"
`
shouldBe
`
"soy"
stem
EN
GargPorterAlgorithm
"cry"
`
shouldBe
`
"cri"
-- This test outlines the main differences between Porter and Lancaster.
-- This test outlines the main differences between Porter and Lancaster.
stem
EN
GargPorterAlgorithm
"dancer"
`
shouldBe
`
"dancer"
stem
EN
GargPorterAlgorithm
"dancer"
`
shouldBe
`
"dancer"
stem
EN
LancasterAlgorithm
"dancer"
`
shouldBe
`
"dant"
stem
EN
LancasterAlgorithm
"dancer"
`
shouldBe
`
"dant"
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
84a773b4
·
Oct 16, 2024
mentioned in commit
84a773b4
mentioned in commit 84a773b4b001adde02d6543c0ed7d16acd289079
Toggle commit list
Przemyslaw Kaminski
@cgenie
mentioned in commit
83c8708f
·
Nov 07, 2024
mentioned in commit
83c8708f
mentioned in commit 83c8708f08e563243a0ff361e51a46c7d7822bb7
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