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
91ee0a0f
Commit
91ee0a0f
authored
Sep 19, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments for constants.py
parent
30161f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
4 deletions
+38
-4
constants.py
gargantext/constants.py
+38
-4
No files found.
gargantext/constants.py
View file @
91ee0a0f
"""
# WARNING: to ensure consistency and retrocompatibility, lists should keep the
# initial order (ie., new elements should be appended at the end of the lists)
abstract:
---------
something between global params, constants,
configuration variables, ini file...
contents:
---------
+ db constants/ontology
- nodetypes
(db int <=> named types <=> python code)
+ input low-level limits
- query size
- max upload size
- doc parsing batch size
- word extraction batch size
+ process config
- resourcetypes config (~ input ontology)
- wordlist generation params
- graph creation params
- £TODO sequence of transformations "custom pipeline"
+ input process subclasses/subroutines
- crawling, import
- tagger services and functions
- parser services
- stemmer services
"""
import
os
import
re
import
importlib
from
gargantext.util.lists
import
*
from
gargantext.util.tools
import
datetime
,
convert_to_date
import
re
from
.settings
import
BASE_DIR
# types & models (nodes, lists, hyperdata, resource) ---------------------------------------------
LISTTYPES
=
{
...
...
@@ -330,8 +366,6 @@ DEFAULT_CSV_DELIM_GROUP = '|&|'
# Files ----------------------------------------------------------------
import
os
from
.settings
import
BASE_DIR
# uploads/.gitignore prevents corpora indexing
# copora can be either a folder or symlink towards specific partition
UPLOAD_DIRECTORY
=
os
.
path
.
join
(
BASE_DIR
,
'uploads/corpora'
)
...
...
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