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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
1aae8a6f
Commit
1aae8a6f
authored
Mar 30, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PHYLO] adding GroupId
parent
07424229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Phylo.hs
src/Gargantext/Types/Phylo.hs
+7
-5
No files found.
src/Gargantext/Types/Phylo.hs
View file @
1aae8a6f
...
@@ -67,9 +67,10 @@ type PhyloLevel = [PhyloGroup]
...
@@ -67,9 +67,10 @@ type PhyloLevel = [PhyloGroup]
-- | PhyloGroup : group of ngrams at each level and step
-- | PhyloGroup : group of ngrams at each level and step
-- Label : maybe has a label as text
-- Label : maybe has a label as text
-- Ngrams: set of terms that build the group
-- Ngrams: set of terms that build the group
-- Temporal Parents|Childs: directed and weighted link to Parents|Childs (Temporal axis)
-- Period Parents|Childs: directed and weighted link to Parents|Childs (Temporal Period axis)
-- Granularity Parents|Childs: directed and weighted link to Parents|Childs (Granularity axis)
-- Level Parents|Childs: directed and weighted link to Parents|Childs (Level Granularity axis)
data
PhyloGroup
=
PhyloGroup
{
_phyloGroupLabel
::
Maybe
Text
data
PhyloGroup
=
PhyloGroup
{
_phyloGroupId
::
GroupId
,
_phyloGroupLabel
::
Maybe
Text
,
_phyloGroupNgrams
::
[
NgramId
]
,
_phyloGroupNgrams
::
[
NgramId
]
,
_phyloGroupPeriodParents
::
[
Edge
]
,
_phyloGroupPeriodParents
::
[
Edge
]
...
@@ -79,8 +80,9 @@ data PhyloGroup = PhyloGroup { _phyloGroupLabel :: Maybe Text
...
@@ -79,8 +80,9 @@ data PhyloGroup = PhyloGroup { _phyloGroupLabel :: Maybe Text
,
_phyloGroupLevelChilds
::
[
Edge
]
,
_phyloGroupLevelChilds
::
[
Edge
]
}
deriving
(
Generic
)
}
deriving
(
Generic
)
type
Edge
=
(
NgramId
,
Weight
)
type
Edge
=
(
PhyloGroupId
,
Weight
)
type
Weight
=
Double
type
Weight
=
Double
type
PhyloGroupId
=
Int
-- | JSON instances
-- | JSON instances
$
(
deriveJSON
(
unPrefix
"_phylo"
)
''
P
hylo
)
$
(
deriveJSON
(
unPrefix
"_phylo"
)
''
P
hylo
)
...
...
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