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
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
f9458380
Commit
f9458380
authored
Jan 21, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] more strict data
parent
6f5547f9
Pipeline
#1370
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
NgramsPostag.hs
src/Gargantext/Database/Query/Table/NgramsPostag.hs
+5
-5
NgramsPostag.hs
src/Gargantext/Database/Schema/NgramsPostag.hs
+2
-2
No files found.
src/Gargantext/Database/Query/Table/NgramsPostag.hs
View file @
f9458380
...
@@ -34,11 +34,11 @@ import qualified Data.HashMap.Strict as HashMap
...
@@ -34,11 +34,11 @@ import qualified Data.HashMap.Strict as HashMap
import
qualified
Data.List
as
List
import
qualified
Data.List
as
List
import
qualified
Database.PostgreSQL.Simple
as
PGS
import
qualified
Database.PostgreSQL.Simple
as
PGS
data
NgramsPostag
=
NgramsPostag
{
_np_lang
::
Lang
data
NgramsPostag
=
NgramsPostag
{
_np_lang
::
!
Lang
,
_np_algo
::
PosTagAlgo
,
_np_algo
::
!
PosTagAlgo
,
_np_postag
::
POS
,
_np_postag
::
!
POS
,
_np_form
::
Ngrams
,
_np_form
::
!
Ngrams
,
_np_lem
::
Ngrams
,
_np_lem
::
!
Ngrams
}
}
deriving
(
Eq
,
Ord
,
Generic
,
Show
)
deriving
(
Eq
,
Ord
,
Generic
,
Show
)
makeLenses
''
N
gramsPostag
makeLenses
''
N
gramsPostag
...
...
src/Gargantext/Database/Schema/NgramsPostag.hs
View file @
f9458380
...
@@ -43,8 +43,8 @@ data NgramsPostagPoly id
...
@@ -43,8 +43,8 @@ data NgramsPostagPoly id
}
deriving
(
Show
)
}
deriving
(
Show
)
------------------------------------------------------------------------
------------------------------------------------------------------------
data
PosTag
=
PosTag
{
unPosTag
::
Text
}
data
PosTag
=
PosTag
{
unPosTag
::
!
Text
}
|
NER
{
unNER
::
Text
}
-- TODO
|
NER
{
unNER
::
!
Text
}
-- TODO
------------------------------------------------------------------------
------------------------------------------------------------------------
-- type NgramsPostag = NgramsPostagPoly (Maybe Int) Lang PostTagAlgo (Maybe PosTag) NgramsTerm NgramsTerm (Maybe Int)
-- type NgramsPostag = NgramsPostagPoly (Maybe Int) Lang PostTagAlgo (Maybe PosTag) NgramsTerm NgramsTerm (Maybe Int)
...
...
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