Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
f70b8958
Commit
f70b8958
authored
Sep 11, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding postagging
parent
2806e6d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
models.py
documents/models.py
+10
-3
No files found.
documents/models.py
View file @
f70b8958
...
@@ -114,6 +114,7 @@ class Ngram(models.Model):
...
@@ -114,6 +114,7 @@ class Ngram(models.Model):
terms
=
models
.
TextField
(
unique
=
True
)
terms
=
models
.
TextField
(
unique
=
True
)
stem
=
models
.
TextField
(
blank
=
True
)
stem
=
models
.
TextField
(
blank
=
True
)
n
=
models
.
IntegerField
()
n
=
models
.
IntegerField
()
# post-tag = models.ManyToMany(blank=True)
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
terms
return
self
.
terms
...
@@ -132,11 +133,11 @@ class NgramDocument(models.Model):
...
@@ -132,11 +133,11 @@ class NgramDocument(models.Model):
return
self
.
terms
.
terms
return
self
.
terms
.
terms
class
NgramDocumentTemporary
(
models
.
Model
):
class
NgramDocumentTemporary
(
models
.
Model
):
terms
=
models
.
Text
field
(
)
terms
=
models
.
Text
Field
(
blank
=
True
)
document
=
models
.
IntegerField
()
document
=
models
.
IntegerField
(
blank
=
True
)
occurrences
=
models
.
IntegerField
(
blank
=
True
,
null
=
True
)
occurrences
=
models
.
IntegerField
(
blank
=
True
,
null
=
True
)
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
terms
.
terms
return
self
.
terms
class
List
(
models
.
Model
):
class
List
(
models
.
Model
):
title
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
)
title
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
)
...
@@ -153,6 +154,12 @@ class ListNgram(models.Model):
...
@@ -153,6 +154,12 @@ class ListNgram(models.Model):
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
mainForm
.
terms
return
self
.
mainForm
.
terms
#class Postag(models.Model):
# abrev = models.CharField(max_length=30, unique=True)
# description = models.TextField(blank=True)
# def __str__(self):
# return(self.abrev)
######################################################################
######################################################################
# Coocurrences
# Coocurrences
# Graph
# Graph
...
...
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