diff --git a/domains-classifier/v1/en/classify.ini b/domains-classifier/v1/en/classify.ini index 9215a0a..4ddf233 100644 --- a/domains-classifier/v1/en/classify.ini +++ b/domains-classifier/v1/en/classify.ini @@ -1,7 +1,7 @@ # OpenAPI Documentation - JSON format (dot notation) post.responses.default.description = Return all objects with enrich fields post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function +post.summary = domaines classification web service post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -17,6 +17,8 @@ post.parameters.2.schema.type = integer post.parameters.2.description = profondeur [0...3] + + [use] plugin = @ezs/local plugin = @ezs/basics diff --git a/nlp-tools/test_EZ/run_test_NLPtools_EZ.py b/nlp-tools/test_EZ/run_test_NLPtools_EZ.py index 0eef787..75f31e6 100755 --- a/nlp-tools/test_EZ/run_test_NLPtools_EZ.py +++ b/nlp-tools/test_EZ/run_test_NLPtools_EZ.py @@ -13,19 +13,38 @@ outputs=['doc', 'json'] languages=['en','fr'] + +https_proxy="http://proxyout.inist.fr:8080/" +http_proxy="http://proxyout.inist.fr:8080/" + +proxyDict = { + "http" : http_proxy, + "https" : https_proxy, + } + # dev # uri="http://nlptools-02.tdmservices.intra.inist.fr" # prod uri_prod="https://nlp-tools-2.services.inist.fr" -#"http://vptdmservices.intra.inist.fr:35268/" uri_dev="http://nlptools-02.tdmservices.intra.inist.fr" - +uri_prod_sp="http://vptdmservices.intra.inist.fr:35268" #changer la valeur de uri pour pointer vers la dev ou la prod uri=uri_dev # parameter headers = {'content-type': 'application/octet-stream'} query= {"indent": "true"} + +doc_en="""[ + {"id":"PhnlUo_d6LoJPLN3YUjh5qBLc","value":"Non-local effects by homogenization or 3D–1D dimension reduction in elastic materials reinforced by stiff fibers.We first consider an elastic thin heterogeneous cylinder of radius of order ε: the interior of the cylinder is occupied by a stiff material (fiber) that is surrounded by a soft material (matrix). By assuming that the elasticity tensor of the fiber does not scale with ε and that of the matrix scales with ε2, we prove that the one dimensional model is a nonlocal system.We then consider a reference configuration domain filled out by periodically distributed rods similar to those described above. We prove that the homogenized model is a second order nonlocal problem.In particular, we show that the homogenization problem is directly connected to the 3D–1D dimensional reduction problem."} + ]""" +doc_en1="""[ + {"id": "paDxcIPh8aDRAi18YAhjivtuE", + "value": "Dynamics of fully coupled rotators with unimodal and bimodal frequencies distribution."} + ]""" +doc_fr="""[ + {"id":"xBKeVishRTsAqsdsqJn5YWo0HpuD","value":"Le déplacement chimique des carbones en phase gazeuse et en fonction de la concentration dans dix-neuf solvants dans le but de séparer les différents termes de constante dus aux interactions"} + ]""" # data : # -- fonctionne pas # doc = "../data/data.json" @@ -37,20 +56,16 @@ if language == "en": engines=["postagger", "stemmer", "npchunker", "npchunkerdp", "termmatcher", "ner"] - doc="""[ - {"id":"PhnlUo_d6LoJPLN3YUjh5qBLc","value":"Non-local effects by homogenization or 3D–1D dimension reduction in elastic materials reinforced by stiff fibers.We first consider an elastic thin heterogeneous cylinder of radius of order ε: the interior of the cylinder is occupied by a stiff material (fiber) that is surrounded by a soft material (matrix). By assuming that the elasticity tensor of the fiber does not scale with ε and that of the matrix scales with ε2, we prove that the one dimensional model is a nonlocal system.We then consider a reference configuration domain filled out by periodically distributed rods similar to those described above. We prove that the homogenized model is a second order nonlocal problem.In particular, we show that the homogenization problem is directly connected to the 3D–1D dimensional reduction problem."} - ]""" + doc=doc_en1 else: engines=["postagger", "stemmer"] - doc="""[ - {"id":"xBKeVishRTsAqsdsqJn5YWo0HpuD","value":"Le déplacement chimique des carbones en phase gazeuse et en fonction de la concentration dans dix-neuf solvants dans le but de séparer les différents termes de constante dus aux interactions"} - ]""" + doc=doc_fr for engine in engines: for output in outputs: url ="{}/v1/{}/{}/analyze".format(uri, language, engine) query['output'] = output - response = requests.post(url , params = query, data = doc.encode('utf-8'), stream=True, headers=headers) + response = requests.post(url , params = query, data = doc.encode('utf-8'), stream=True, headers=headers) #proxies=proxyDict print("\n------------ {} ({} - {}) :".format(engine,output,language )) print(url) diff --git a/www-home/index.html b/www-home/index.html index 936615f..214767d 100644 --- a/www-home/index.html +++ b/www-home/index.html @@ -23,8 +23,8 @@ { url: "https://affiliations-tools.services.inist.fr", name: "Structuration & enrichissements d'affiliations"}, { url: "https://ark-tools.services.inist.fr/", name: "Services autour des identifiants ARK"}, { url: "https://biblio-tools.services.inist.fr/", name: "Outils pour références bibliographiques"}, - { url: "https://nlp-tools.services.inist.fr/", name: "Traitements automatiques du Langage Naturel"}, - { url: "https://domains-classifier.services.inist.fr/", name: "Classification en domaines scientifiques"}, + { url: "https://nlp-tools-2.services.inist.fr/", name: "Traitements automatiques du Langage Naturel"}, + { url: "https://domains-classifier-2.services.inist.fr/", name: "Classification en domaines scientifiques"}, { url: "https://mapping-tools.services.inist.fr/", name: "Utilisation de tables de correspondance"}, { url: "https://nlp-tools2-1.services.inist.fr/", name: "Outils de NLP"}, { url: "https://co-autodeduplicates-2.services.inist.fr/", name: "Dédoublonnage de notices bibliographiques Conditor"},