Commit ae79736a authored by delanoe's avatar delanoe

Merge branch 'testing' into stable

parents b7ba0b62 64b1de48
...@@ -2,33 +2,30 @@ ...@@ -2,33 +2,30 @@
# WARNING: to ensure consistency and retrocompatibility, lists should keep the # WARNING: to ensure consistency and retrocompatibility, lists should keep the
# initial order (ie., new elements should be appended at the end of the lists) # initial order (ie., new elements should be appended at the end of the lists)
abstract: abstract:
--------- ---------
something between global params, constants, something between global params, constants,
configuration variables, ini file... configuration variables, ini file...
contents: contents:
--------- ---------
+ database constants/ontology
+ db constants/ontology
- nodetypes - nodetypes
(db int <=> named types <=> python code) (db int <=> named types <=> python code)
+ input low-level limits + low-level limits
- query size - query size
- max upload size - max upload size
- doc parsing batch size - doc parsing batch size
- word extraction batch size - word extraction batch size
+ process config + main process config
- resourcetypes config (~ input ontology) - resourcetypes config (~ input ontology)
- wordlist generation params - wordlist generation params
- graph creation params - graph creation params
- £TODO sequence of transformations "custom pipeline" - £TODO sequence of transformations "custom pipeline"
+ input process subclasses/subroutines + subprocess config
- crawling, import - crawling, import
- tagger services and functions - tagger services and functions
- parser services - parser services
...@@ -83,6 +80,7 @@ NODETYPES = [ ...@@ -83,6 +80,7 @@ NODETYPES = [
# docs subset # docs subset
'FAVORITES', # 15 'FAVORITES', # 15
# more scores (sorry!) # more scores (sorry!)
'TIRANK-LOCAL', # 16 'TIRANK-LOCAL', # 16
'TIRANK-GLOBAL', # 17 'TIRANK-GLOBAL', # 17
...@@ -90,6 +88,13 @@ NODETYPES = [ ...@@ -90,6 +88,13 @@ NODETYPES = [
'RESOURCE', # 19 '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 = { INDEXED_HYPERDATA = {
# TODO use properties during toolchain.hyperdata_indexing # TODO use properties during toolchain.hyperdata_indexing
# (type, convert_to_db, convert_from_db) # (type, convert_to_db, convert_from_db)
...@@ -154,7 +159,6 @@ INDEXED_HYPERDATA = { ...@@ -154,7 +159,6 @@ INDEXED_HYPERDATA = {
# user parameters---------------------------------------- # user parameters----------------------------------------
USER_LANG = ["fr", "en"] USER_LANG = ["fr", "en"]
# resources --------------------------------------------- # resources ---------------------------------------------
def get_resource(sourcetype): def get_resource(sourcetype):
'''resource :: type => resource dict''' '''resource :: type => resource dict'''
......
This diff is collapsed.
...@@ -63,10 +63,10 @@ def clusterByDistances( cooc_matrix ...@@ -63,10 +63,10 @@ def clusterByDistances( cooc_matrix
n = n.sort_index(inplace=False) n = n.sort_index(inplace=False)
m = m.sort_index(inplace=False) m = m.sort_index(inplace=False)
nodes_included = 500 #int(round(size/20,0)) nodes_included = 10000 #int(round(size/20,0))
#nodes_excluded = int(round(size/10,0)) #nodes_excluded = int(round(size/10,0))
nodes_specific = 500 #int(round(size/10,0)) nodes_specific = 10000 #int(round(size/10,0))
#nodes_generic = int(round(size/10,0)) #nodes_generic = int(round(size/10,0))
# TODO use the included score for the node size # TODO use the included score for the node size
......
...@@ -14,25 +14,40 @@ ...@@ -14,25 +14,40 @@
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
<div class="row"> <div class="row">
<div class="col-md-4 content"> <div class="col-md-8 content">
<h1>Gargantext</h1> <h1>Gargantext</h1>
<p>A web platform to explore text-mining</p> <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"> <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> <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
Enter in Log in
</a> </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> <span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span>
<small>
<i> <i>
Some features may not work without a javascript optimized browser (Chromium for instance). Some features may not work without a javascript optimized browser (Chromium for instance).
</i> </i>
</small>
</p> </p>
</div> </div>
<div class="col-md-2 content"></div>
<div class="col-md-2 content"></div>
<div class="col-md-2 content"> <div class="col-md-2 content">
<p class="right"> <p class="right">
<div style="border:15px"> <div style="border:15px">
...@@ -62,8 +77,6 @@ ...@@ -62,8 +77,6 @@
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-4 content"> <div class="col-md-4 content">
...@@ -89,6 +102,5 @@ ...@@ -89,6 +102,5 @@
</div> </div>
{% endblock %} {% endblock %}
<script type="text/javascript" src="{% static "lib/gargantext/help.js" %}"></script> <script type="text/javascript" src="{% static "lib/gargantext/help.js" %}"></script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment