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
ae79736a
Commit
ae79736a
authored
Jan 18, 2017
by
delanoe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'testing' into stable
parents
b7ba0b62
64b1de48
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
168 additions
and
175 deletions
+168
-175
constants.py
gargantext/constants.py
+12
-8
ngram_coocs.py
gargantext/util/toolchain/ngram_coocs.py
+132
-155
distances.py
graph/distances.py
+2
-2
home.html
templates/pages/main/home.html
+22
-10
No files found.
gargantext/constants.py
View file @
ae79736a
...
...
@@ -2,33 +2,30 @@
# 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
+ database constants/ontology
- nodetypes
(db int <=> named types <=> python code)
+
input
low-level limits
+ low-level limits
- query size
- max upload size
- doc parsing batch size
- word extraction batch size
+ process config
+
main
process config
- resourcetypes config (~ input ontology)
- wordlist generation params
- graph creation params
- £TODO sequence of transformations "custom pipeline"
+
input process subclasses/subroutines
+
subprocess config
- crawling, import
- tagger services and functions
- parser services
...
...
@@ -83,6 +80,7 @@ NODETYPES = [
# docs subset
'FAVORITES'
,
# 15
# more scores (sorry!)
'TIRANK-LOCAL'
,
# 16
'TIRANK-GLOBAL'
,
# 17
...
...
@@ -90,6 +88,13 @@ NODETYPES = [
'RESOURCE'
,
# 19
]
def
get_nodetype_id_by_name
(
nodetype
):
'''resource :: name => resource dict'''
for
n
in
NODETYPES
:
if
str
(
n
[
"name"
])
==
str
(
sourcename
):
return
n
INDEXED_HYPERDATA
=
{
# TODO use properties during toolchain.hyperdata_indexing
# (type, convert_to_db, convert_from_db)
...
...
@@ -154,7 +159,6 @@ INDEXED_HYPERDATA = {
# user parameters----------------------------------------
USER_LANG
=
[
"fr"
,
"en"
]
# resources ---------------------------------------------
def
get_resource
(
sourcetype
):
'''resource :: type => resource dict'''
...
...
gargantext/util/toolchain/ngram_coocs.py
View file @
ae79736a
This diff is collapsed.
Click to expand it.
graph/distances.py
View file @
ae79736a
...
...
@@ -63,10 +63,10 @@ def clusterByDistances( cooc_matrix
n
=
n
.
sort_index
(
inplace
=
False
)
m
=
m
.
sort_index
(
inplace
=
False
)
nodes_included
=
5
00
#int(round(size/20,0))
nodes_included
=
100
00
#int(round(size/20,0))
#nodes_excluded = int(round(size/10,0))
nodes_specific
=
5
00
#int(round(size/10,0))
nodes_specific
=
100
00
#int(round(size/10,0))
#nodes_generic = int(round(size/10,0))
# TODO use the included score for the node size
...
...
templates/pages/main/home.html
View file @
ae79736a
...
...
@@ -14,25 +14,40 @@
<div
class=
"container"
>
<div
class=
"jumbotron"
>
<div
class=
"row"
>
<div
class=
"col-md-
4
content"
>
<div
class=
"col-md-
8
content"
>
<h1>
Gargantext
</h1>
<p>
A web platform to explore text-mining
</p>
<p>
<a
class=
"btn btn-primary btn-lg"
href=
"/projects"
title=
"Click and test by yourself"
>
<span
class=
"glyphicon glyphicon-hand-right"
aria-hidden=
"true"
></span>
Enter
in
Log
in
</a>
<p>
<a
class=
"btn btn-warning btn-lg"
target=
"blank"
href=
"https://iscpif.fr/services/applyforourservices/"
title=
"Fill the form to sign up"
>
<span
class=
"glyphicon glyphicon-hand-right"
aria-hidden=
"true"
></span>
Sign Up
</a>
<a
class=
"btn btn-success btn-lg"
target=
"blank"
href=
"https://iscpif.fr/gargantext/your-first-map/"
title=
"Fill the form to sign up"
>
<span
class=
"glyphicon glyphicon-hand-right"
aria-hidden=
"true"
></span>
Documentation
</a>
</p>
<span
class=
"glyphicon glyphicon-warning-sign"
aria-hidden=
"true"
></span>
<small>
<i>
Some features may not work without a javascript optimized browser (Chromium for instance).
</i>
</small>
</p>
</div>
<div
class=
"col-md-2 content"
></div>
<div
class=
"col-md-2 content"
></div>
<div
class=
"col-md-2 content"
>
<p
class=
"right"
>
<div
style=
"border:15px"
>
...
...
@@ -62,8 +77,6 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-4 content"
>
...
...
@@ -89,6 +102,5 @@
</div>
{% endblock %}
<script
type=
"text/javascript"
src=
"{% static "
lib
/
gargantext
/
help
.
js
"
%}"
></script>
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