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
154
Issues
154
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
584ec33a
Commit
584ec33a
authored
Jan 30, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
ac1c2e82
Pipeline
#167
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
15 deletions
+12
-15
Node.hs
src/Gargantext/API/Node.hs
+1
-1
Ngrams.hs
src/Gargantext/Database/Schema/Ngrams.hs
+8
-12
Flow.hs
src/Gargantext/Text/Flow.hs
+2
-1
Metrics.hs
src/Gargantext/Text/Metrics.hs
+1
-1
No files found.
src/Gargantext/API/Node.hs
View file @
584ec33a
...
...
@@ -279,7 +279,7 @@ graphAPI nId = do
nodeGraph
<-
getNode
nId
HyperdataGraph
let
title
=
"
Graph
Title"
let
title
=
"Title"
let
metadata
=
GraphMetadata
title
[
maybe
0
identity
$
_node_parentId
nodeGraph
]
[
LegendField
1
"#FFF"
"Cluster"
,
LegendField
2
"#FFF"
"Cluster"
...
...
src/Gargantext/Database/Schema/Ngrams.hs
View file @
584ec33a
...
...
@@ -58,13 +58,11 @@ type NgramsTerms = Text
type
NgramsId
=
Int
type
Size
=
Int
--{-
data
NgramsPoly
id
terms
n
=
NgramsDb
{
ngrams_id
::
id
,
ngrams_terms
::
terms
,
ngrams_n
::
n
}
deriving
(
Show
)
,
ngrams_terms
::
terms
,
ngrams_n
::
n
}
deriving
(
Show
)
--}
type
NgramsWrite
=
NgramsPoly
(
Maybe
(
Column
PGInt4
))
(
Column
PGText
)
(
Column
PGInt4
)
...
...
@@ -77,7 +75,6 @@ type NgramsReadNull = NgramsPoly (Column (Nullable PGInt4))
(
Column
(
Nullable
PGText
))
(
Column
(
Nullable
PGInt4
))
--{-
type
NgramsDb
=
NgramsPoly
Int
Text
Int
$
(
makeAdaptorAndInstance
"pNgramsDb"
''
N
gramsPoly
)
...
...
@@ -85,17 +82,16 @@ $(makeAdaptorAndInstance "pNgramsDb" ''NgramsPoly)
ngramsTable
::
Table
NgramsWrite
NgramsRead
ngramsTable
=
Table
"ngrams"
(
pNgramsDb
NgramsDb
{
ngrams_id
=
optional
"id"
,
ngrams_terms
=
required
"terms"
,
ngrams_n
=
required
"n"
}
)
--{-
,
ngrams_terms
=
required
"terms"
,
ngrams_n
=
required
"n"
}
)
queryNgramsTable
::
Query
NgramsRead
queryNgramsTable
=
queryTable
ngramsTable
dbGetNgramsDb
::
Cmd
err
[
NgramsDb
]
dbGetNgramsDb
=
runOpaQuery
queryNgramsTable
--}
-- | Main Ngrams Types
-- | Typed Ngrams
...
...
src/Gargantext/Text/Flow.hs
View file @
584ec33a
...
...
@@ -43,6 +43,7 @@ import Gargantext.Text.Terms (TermType, extractTerms)
import
Gargantext.Viz.Graph
(
Graph
(
..
),
data2graph
)
import
Gargantext.Viz.Graph.Bridgeness
(
bridgeness
)
import
Gargantext.Viz.Graph.Distances.Matrice
(
measureConditional
)
--import Gargantext.Viz.Graph.Distances.Matrice (distributional)
import
Gargantext.Viz.Graph.Index
(
createIndices
,
toIndex
,
map2mat
,
mat2map
)
{-
____ _ _
...
...
@@ -153,7 +154,7 @@ cooc2graph myCooc = do
-- let distance = fromIndex fi distanceMap
--printDebug "distance" $ M.size distance
partitions
<-
case
M
.
size
distanceMap
>
0
of
True
->
cLouvain
distanceMap
False
->
panic
"Text.Flow: DistanceMap is empty"
...
...
src/Gargantext/Text/Metrics.hs
View file @
584ec33a
...
...
@@ -63,7 +63,7 @@ filterCooc' (FilterConfig _ _ _ _ (DefaultValue dv)) ts m = trace ("coocScored "
where
selection
=
[(
x
,
y
)
|
x
<-
ts
,
y
<-
ts
-- , x >=
y
,
x
>
y
]
...
...
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