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
c20d8f5f
Commit
c20d8f5f
authored
May 04, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] unused imports and indentation of comments.
parent
9e1c9fbb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
Core.hs
src/Gargantext/Core.hs
+8
-8
En.hs
src/Gargantext/Text/Ngrams/Stem/En.hs
+9
-9
No files found.
src/Gargantext/Core.hs
View file @
c20d8f5f
...
...
@@ -17,13 +17,13 @@ module Gargantext.Core
------------------------------------------------------------------------
-- | Language of a Text
-- For simplicity, we suppose text has an homogenous language
data
Lang
=
EN
|
FR
-- | DE | IT | SP
-- > EN == english
-- > FR == french
-- > DE == deutch (not implemented yet)
-- > IT == italian (not implemented yet)
-- > SP == spanish (not implemented yet)
-- > ... add your language and help us to implement it (:
data
Lang
=
EN
|
FR
-- | DE | IT | SP
-- EN == english
-- FR == french
-- DE == deutch (not implemented yet)
-- IT == italian (not implemented yet)
-- SP == spanish (not implemented yet)
-- ... add your language and help us to implement it (:
src/Gargantext/Text/Ngrams/Stem/En.hs
View file @
c20d8f5f
...
...
@@ -17,7 +17,7 @@ Adapted from:
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Text.Ngrams.Stem.En
module
Gargantext.Text.Ngrams.Stem.En
(
stem
)
where
import
Control.Monad
...
...
@@ -203,14 +203,14 @@ stem' :: [Char] -> [Char]
stem'
s
|
length
s
<
3
=
s
|
otherwise
=
allSteps
s
fixpoint
::
Eq
t
=>
(
t
->
t
)
->
t
->
t
fixpoint
f
x
=
let
fx
=
f
x
in
if
fx
==
x
then
x
else
fixpoint
f
fx
fixstem
::
[
Char
]
->
[
Char
]
fixstem
=
fixpoint
stem'
--
fixpoint :: Eq t => (t -> t) -> t -> t
--
fixpoint f x = let fx = f x in
--
if fx == x
--
then x
--
else fixpoint f fx
--
--
fixstem :: [Char] -> [Char]
--
fixstem = fixpoint stem'
{-
...
...
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