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
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
Julien Moutinho
haskell-gargantext
Commits
5a2a78fe
Commit
5a2a78fe
authored
Oct 09, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Corpus V3 + fixes for compilation.
parent
b6b0e00f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
5 deletions
+17
-5
Gargantext.hs
src/Gargantext.hs
+2
-0
Config.hs
src/Gargantext/Database/Config.hs
+2
-1
Tree.hs
src/Gargantext/Database/Tree.hs
+1
-1
Node.hs
src/Gargantext/Database/Types/Node.hs
+2
-1
CH.hs
src/Gargantext/Text/Samples/CH.hs
+1
-0
DE.hs
src/Gargantext/Text/Samples/DE.hs
+2
-0
EN.hs
src/Gargantext/Text/Samples/EN.hs
+1
-0
FR.hs
src/Gargantext/Text/Samples/FR.hs
+3
-1
SP.hs
src/Gargantext/Text/Samples/SP.hs
+2
-0
Stop.hs
src/Gargantext/Text/Terms/Stop.hs
+1
-1
No files found.
src/Gargantext.hs
View file @
5a2a78fe
...
...
@@ -10,6 +10,8 @@ Portability : POSIX
@Gargantext@: search, map, share
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext
(
module
Gargantext
.
API
,
module
Gargantext
.
Core
,
module
Gargantext
.
Database
...
...
src/Gargantext/Database/Config.hs
View file @
5a2a78fe
...
...
@@ -34,7 +34,8 @@ nodeTypeId n =
NodeUser
->
1
Folder
->
2
--NodeCorpus -> 3
NodeCorpus
->
30
-- TODO ERRR
NodeCorpusV3
->
3
NodeCorpus
->
30
Annuaire
->
31
Document
->
4
UserPage
->
41
...
...
src/Gargantext/Database/Tree.hs
View file @
5a2a78fe
...
...
@@ -100,7 +100,7 @@ dbTree conn rootId = map (\(nId, tId, pId, n) -> DbTreeNode nId tId pId n) <$> q
UNION ALL
SELECT n.id, n.typename, n.parent_id, n.name
FROM nodes AS n JOIN descendants AS d ON n.parent_id = d.id
where n.typename in (2,30,31)
where n.typename in (2,3
,3
0,31)
),
ancestors (id, typename, parent_id, name) AS
(
...
...
src/Gargantext/Database/Types/Node.hs
View file @
5a2a78fe
...
...
@@ -271,13 +271,14 @@ type NodeUser = Node HyperdataUser
type
Folder
=
Node
HyperdataFolder
type
Project
=
Node
HyperdataProject
type
NodeCorpus
=
Node
HyperdataCorpus
type
NodeCorpusV3
=
Node
HyperdataCorpus
type
Document
=
Node
HyperdataDocument
------------------------------------------------------------------------
data
NodeType
=
NodeUser
-- | Project
|
Folder
|
NodeCorpus
|
Annuaire
|
NodeCorpus
|
NodeCorpusV3
|
Annuaire
|
Document
-- | Individu
|
UserPage
|
Favorites
|
Graph
|
Dashboard
|
Chart
...
...
src/Gargantext/Text/Samples/CH.hs
View file @
5a2a78fe
...
...
@@ -13,6 +13,7 @@ Page : text mining
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Text.Samples.CH
where
...
...
src/Gargantext/Text/Samples/DE.hs
View file @
5a2a78fe
...
...
@@ -12,6 +12,8 @@ Page : text mining
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Text.Samples.DE
where
import
Data.String
(
String
)
...
...
src/Gargantext/Text/Samples/EN.hs
View file @
5a2a78fe
...
...
@@ -13,6 +13,7 @@ Page : text mining
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Text.Samples.EN
where
...
...
src/Gargantext/Text/Samples/FR.hs
View file @
5a2a78fe
...
...
@@ -12,9 +12,11 @@ Page : text mining
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Text.Samples.FR
where
import
Gargantext.Prelude
import
Gargantext.Prelude
((
<>
))
import
Data.String
(
String
)
textSample
::
String
...
...
src/Gargantext/Text/Samples/SP.hs
View file @
5a2a78fe
...
...
@@ -12,6 +12,8 @@ Page : text mining
-}
{-# LANGUAGE NoImplicitPrelude #-}
module
Gargantext.Text.Samples.SP
where
import
Data.String
(
String
)
...
...
src/Gargantext/Text/Terms/Stop.hs
View file @
5a2a78fe
...
...
@@ -162,7 +162,7 @@ pebLang st = map (\(l,eb) -> (l, peb' st eb)) . DM.toList
------------------------------------------------------------------------
prior
::
[(
Lang
,
(
Freq
,
TotalFreq
))]
->
[(
Lang
,
Double
)]
prior
ps
=
zip
ls
$
zipWith
(
\
x
y
->
x
^
99
*
y
)
(
map
(
\
(
a
,
_
)
->
part
a
(
sum
$
map
fst
ps'
))
ps'
)
prior
ps
=
zip
ls
$
zipWith
(
\
x
y
->
x
^
(
99
::
Int
)
*
y
)
(
map
(
\
(
a
,
_
)
->
part
a
(
sum
$
map
fst
ps'
))
ps'
)
(
map
(
\
(
a
,
b
)
->
a
/
b
)
ps'
)
where
...
...
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