Commit b2378cb1 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[DOC/CODE] cosmetics.

parent e086e526
...@@ -32,7 +32,7 @@ import GHC.Generics (Generic) ...@@ -32,7 +32,7 @@ import GHC.Generics (Generic)
import Gargantext.Prelude import Gargantext.Prelude
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- | Phylo datatype descriptors: -- | Phylo datatype descriptor:
-- Period: time Segment of the whole phylomemy in UTCTime format (start,end) -- Period: time Segment of the whole phylomemy in UTCTime format (start,end)
-- Terms : list of all (possible) terms contained in the phylomemy (with their id) -- Terms : list of all (possible) terms contained in the phylomemy (with their id)
-- Steps : list of all steps to build the phylomemy -- Steps : list of all steps to build the phylomemy
...@@ -41,20 +41,20 @@ data Phylo = Phylo { _phyloPeriod :: (Start, End) ...@@ -41,20 +41,20 @@ data Phylo = Phylo { _phyloPeriod :: (Start, End)
, _phyloSteps :: [PhyloStep] , _phyloSteps :: [PhyloStep]
} deriving (Generic) } deriving (Generic)
type Ngram = (NgramId, Text)
type NgramId = Int
type Start = UTCTime type Start = UTCTime
type End = UTCTime type End = UTCTime
-- | PhyloStep data type descriptor type Ngram = (NgramId, Text)
type NgramId = Int
-- | PhyloStep datatype descriptor:
-- Period: tuple (start date, end date) of the step of the phylomemy -- Period: tuple (start date, end date) of the step of the phylomemy
-- Levels: levels of granularity -- Levels: levels of granularity
data PhyloStep = PhyloStep { _phyloStepPeriod :: (Start, End) data PhyloStep = PhyloStep { _phyloStepPeriod :: (Start, End)
, _phyloStepLevels :: [Level] , _phyloStepLevels :: [Level]
} deriving (Generic) } deriving (Generic)
-- | Level of a step of a Phylomemy -- | Level of a step of a Phylomemy descriptor
-- Label: maybe has a label as text -- Label: maybe has a label as text
-- Terms: set of terms that build the group -- Terms: set of terms that build the group
-- Temporal Parents: directed and weighted link to Parents -- Temporal Parents: directed and weighted link to Parents
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment