Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
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
Przemyslaw Kaminski
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
Changes
2
Show 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
import
qualified
Data.List
as
List
import
qualified
Database.PostgreSQL.Simple
as
PGS
data
NgramsPostag
=
NgramsPostag
{
_np_lang
::
Lang
,
_np_algo
::
PosTagAlgo
,
_np_postag
::
POS
,
_np_form
::
Ngrams
,
_np_lem
::
Ngrams
data
NgramsPostag
=
NgramsPostag
{
_np_lang
::
!
Lang
,
_np_algo
::
!
PosTagAlgo
,
_np_postag
::
!
POS
,
_np_form
::
!
Ngrams
,
_np_lem
::
!
Ngrams
}
deriving
(
Eq
,
Ord
,
Generic
,
Show
)
makeLenses
''
N
gramsPostag
...
...
src/Gargantext/Database/Schema/NgramsPostag.hs
View file @
f9458380
...
...
@@ -43,8 +43,8 @@ data NgramsPostagPoly id
}
deriving
(
Show
)
------------------------------------------------------------------------
data
PosTag
=
PosTag
{
unPosTag
::
Text
}
|
NER
{
unNER
::
Text
}
-- TODO
data
PosTag
=
PosTag
{
unPosTag
::
!
Text
}
|
NER
{
unNER
::
!
Text
}
-- TODO
------------------------------------------------------------------------
-- 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