diff --git a/nlp-tools/examples.http b/nlp-tools/examples.http index f28eb1f..aaa1fd6 100644 --- a/nlp-tools/examples.http +++ b/nlp-tools/examples.http @@ -1,32 +1,74 @@ # VP -#@baseUrl = https://nlp-tools-2.services.inist.fr +# @baseUrl=https://nlp-tools-2.services.inist.fr # VI -@baseUrl = http://nlp-tools-2.tdmservices.intra.inist.fr +@baseUrl=http://nlp-tools-2.tdmservices.intra.inist.fr -@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_en=[{"id":"1","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."}] -# @name postaggerEn -# POSTtagging en anglais -POST {{baseUrl}}/v1/en/postagger/analyze?indent=true&output=json, HTTP/1.1 +@doc_en1=[{"id": "1","value": "Dynamics of fully coupled rotators with unimodal and bimodal frequencies distribution."}] + +@doc_fr=[{"id":"1","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"}] + +### + +# @name stemmingEnDoc +# stemming en anglais +POST {{baseUrl}}/v1/en/stemmer/analyze?indent=true&output=doc HTTP/1.1 Content-Type: application/json +{{doc_en}} +### - {{doc_en}} +# @name stemmingfrDoc +# stemming en francais +POST {{baseUrl}}/v1/fr/stemmer/analyze?indent=true&output=doc HTTP/1.1 +Content-Type: application/json +{{doc_fr}} +### - -# @name lemmatisationEn -# Lemmatisatiobn en anglais +# @name lemmatisationEnDoc +# Lemmatisation en anglais POST {{baseUrl}}/v1/en/postagger/analyze?indent=true&output=doc HTTP/1.1 -[ - {"id": "2","value": "Dynamics of fully coupled rotators with unimodal and bimodal frequencies distribution."} -] - - -# @name TermmMactcherEnMX -# reconnaissance de termes d apres MX en anglais -POST {{baseUrl}}/v1/en/termmatcher/analyze?indent=true&output=doc HTTP/1.1 Content-Type: application/json -[ - {"id": "3", "value":"The efficiency of utilization of potential donors for organ transplantation in Saudi Arabia: A pilot study."} -] +{{doc_en}} +### + +# @name lemmatisationFrDoc +# Lemmatisation en francais +POST {{baseUrl}}/v1/fr/postagger/analyze?indent=true&output=doc HTTP/1.1 +Content-Type: application/json +{{doc_fr}} +### + +# @name postaggerEnJson +# POSTtagging en anglais +POST {{baseUrl}}/v1/en/postagger/analyze?output=json HTTP/1.1 +Content-Type: application/json +{{doc_en}} +### + +# @name postaggerFrJson +# POSTtagging en francais +POST {{baseUrl}}/v1/fr/postagger/analyze?output=json HTTP/1.1 +Content-Type: application/json +{{doc_fr}} +### + +# @name NpChunkerEnDoc +# Chunking nominal en anglais +POST {{baseUrl}}/v1/en/npchunker/analyze?indent=true&output=doc HTTP/1.1 +Content-Type: application/json +{{doc_en}} +### + +# @name NpChunkerEnDP +# Chunking nominal issu de dependance parsing en anglais +POST {{baseUrl}}/v1/en/npchunkerdp/analyze?indent=true&output=doc HTTP/1.1 +Content-Type: application/json +{{doc_en}} +### + +# @name TermMatcherEnMX +# reconnaissance de termes d'apres le MX anglais +POST {{baseUrl}}/v1/en/termmatcher/analyze?indent=true&output=doc HTTP/1.1 +Content-Type: application/json +{{doc_en}} diff --git a/nlp-tools/swagger.json b/nlp-tools/swagger.json new file mode 100644 index 0000000..690a924 --- /dev/null +++ b/nlp-tools/swagger.json @@ -0,0 +1,23 @@ +{ + "info": { + "version": "1.9.0" + }, + "servers": [{ + "url": "{scheme}://{hostname}", + "variables": { + "scheme": { + "default": "https" + } + } + }], + "tags": [ + { + "name": "nlp-tools", + "description": "bibliothèque de composants TALN", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/nlp-tools" + } + } + ] +} \ No newline at end of file diff --git a/nlp-tools/v1/en/npchunker/analyze.ini b/nlp-tools/v1/en/npchunker/analyze.ini index 38fbd7a..c9957b4 100644 --- a/nlp-tools/v1/en/npchunker/analyze.ini +++ b/nlp-tools/v1/en/npchunker/analyze.ini @@ -1,7 +1,5 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -12,6 +10,17 @@ post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.description = result format [doc] ou [json] +post.parameters.2.schema.enum = [doc, json] +mimeType = application/json +post.summary = Nominal Chunking in english +post.responses.description = produces a list of nominal phrases from text +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.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. +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = effect_by_homogenization dimension_reduction elastic_material stiff_fiber thin_heterogeneous_cylinder cylinder_of_radius radius_of_order stiff_material soft_material elasticity_tensor matrix_scale dimensional_model nonlocal_system reference_configuration_domain distribute_rod homogenized_model second_order nonlocal_problem homogenization_problem dimensional_reduction_problem [use] plugin = @ezs/spawn diff --git a/nlp-tools/v1/en/npchunkerdp/analyze.ini b/nlp-tools/v1/en/npchunkerdp/analyze.ini index f63ce9f..ab8093e 100644 --- a/nlp-tools/v1/en/npchunkerdp/analyze.ini +++ b/nlp-tools/v1/en/npchunkerdp/analyze.ini @@ -1,7 +1,5 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -12,6 +10,18 @@ post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.schema.type = string +post.parameters.2.description = result format [doc] ou [json] +post.parameters.2.schema.enum = [doc, json] +mimeType = application/json +post.summary = Nominal Chunking in english +post.responses.description = produces a list of nominal phrases from textn. Dependency parsing are used to map the words in a sentence to semantic roles, thereby identifying the syntactic relations between words. +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.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. +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = non_-_local_effect homogenization dimension_reduction elastic_material stiff_fiber elastic_thin_heterogeneous_cylinder radius order interior cylinder stiff_material fiber soft_material (_matrix elasticity_tensor fiber matrix_scale one_dimensional_model nonlocal_system reference_configuration_domain periodically_rod homogenized_model second_order_nonlocal_problem homogenization_problem 3d–1d_dimensional_reduction_problem [use] plugin = @ezs/spawn diff --git a/nlp-tools/v1/en/postagger/analyze.ini b/nlp-tools/v1/en/postagger/analyze.ini index f95806e..77ac8e6 100644 --- a/nlp-tools/v1/en/postagger/analyze.ini +++ b/nlp-tools/v1/en/postagger/analyze.ini @@ -1,20 +1,26 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query post.parameters.0.name = path post.parameters.0.schema.type = string -post.parameters.0.description = The path in each object to enrich with an Python script post.parameters.1.in = query post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result - -[debug] -text = 'DEBUG 1 ' +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.schema.type = string +post.parameters.2.description = result format [doc] ou [json] +post.parameters.2.schema.enum = [doc, json] +mimeType = application/json +post.summary = english POStagging +post.responses.description = produces the results of a morpho-syntactic analysis providing the part of speech and the lemma of each word +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value = Dynamics of fully coupled rotators with unimodal and bimodal frequencies distribution +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = dynamic of fully couple rotator with unimodal and bimodal frequency distribution [use] plugin = @ezs/spawn @@ -30,7 +36,6 @@ # in production mode, uncomment the following line cache = boost - [expand/exec] #command should be executable ! command = ./analyze.py diff --git a/nlp-tools/v1/en/stemmer/analyze.ini b/nlp-tools/v1/en/stemmer/analyze.ini index a938ada..e192b51 100644 --- a/nlp-tools/v1/en/stemmer/analyze.ini +++ b/nlp-tools/v1/en/stemmer/analyze.ini @@ -1,7 +1,5 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -12,6 +10,18 @@ post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.schema.type = string +post.parameters.2.description = result format [doc] ou [json] +post.parameters.2.schema.enum = [doc, json] +mimeType = application/json +post.summary = english stemming +post.responses.description = procduce the stem of eacch word +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.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. +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = non-local effect by homogen or 3d–1d dimens reduct in elast materi reinforc by stiff fiber.we first consid an elast thin heterogen cylind of radius of order ε: the interior of the cylind is occupi by a stiff materi (fiber) that is surround by a soft materi (matrix). by assum that the elast tensor of the fiber doe not scale with ε and that of the matrix scale with ε2, we prove that the one dimension model is a nonloc system.we then consid a refer configur domain fill out by period distribut rod similar to those describ abov. we prove that the homogen model is a second order nonloc problem.in particular, we show that the homogen problem is direct connect to the 3d–1d dimension reduct problem. [use] plugin = @ezs/spawn diff --git a/nlp-tools/v1/en/termmatcher/analyze.ini b/nlp-tools/v1/en/termmatcher/analyze.ini index af2b8ff..c4b6041 100644 --- a/nlp-tools/v1/en/termmatcher/analyze.ini +++ b/nlp-tools/v1/en/termmatcher/analyze.ini @@ -1,7 +1,5 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -12,7 +10,18 @@ post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result - +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.schema.type = string +post.parameters.2.description = result format [doc] ou [json] +post.parameters.2.schema.enum = [doc, json] +mimeType = application/json +post.summary = keyword assignation +post.responses.description = produces a list of terms match from large terminology MX (english) +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.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. +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = Non-MX_local_effects by MX_homogenization or 3D–1D MX_dimension_reduction in MX_elastic_materials reinforced by stiff MX_fibers .We first consider an elastic thin heterogeneous MX_cylinder of MX_radius of MX_order ε: the interior of the MX_cylinder is occupied by a stiff MX_material (MX_fiber ) that is surrounded by a MX_soft_material (matrix). By assuming that the MX_elasticity tensor of the MX_fiber does not MX_scale with ε and that of the matrix MX_scales with ε2, we prove that the MX_one_dimensional_model is a nonlocal MX_system .We then consider a MX_reference MX_configuration domain MX_filled out by periodically distributed rods similar to those described above. We prove that the homogenized MX_model is a MX_second_order nonlocal MX_problem .In particular, we MX_show that the MX_homogenization MX_problem is directly MX_connected to the 3D–1D dimensional MX_reduction MX_problem . [use] plugin = @ezs/spawn plugin = @ezs/basics diff --git a/nlp-tools/v1/fr/postagger/analyze.ini b/nlp-tools/v1/fr/postagger/analyze.ini index 50a005c..a063858 100644 --- a/nlp-tools/v1/fr/postagger/analyze.ini +++ b/nlp-tools/v1/fr/postagger/analyze.ini @@ -1,7 +1,5 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -12,6 +10,17 @@ post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result +post.parameters.2.schema.enum = [doc, json] +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.schema.type = string +mimeType = application/json +post.summary = POStagging en francais +post.responses.description = produit les résultats d'une analyse morpho-syntaxique d'un texte en fournissant notamment la partie du discours et le lemme de chaque mot +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.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 +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = le déplacement chimique de carbone en phase gazeux et en fonction de le concentration dans dix-neuf solvant dans le but de séparer le différent terme de constante devoir aux interaction [use] plugin = @ezs/spawn diff --git a/nlp-tools/v1/fr/stemmer/analyze.ini b/nlp-tools/v1/fr/stemmer/analyze.ini index e062f37..d61865d 100644 --- a/nlp-tools/v1/fr/stemmer/analyze.ini +++ b/nlp-tools/v1/fr/stemmer/analyze.ini @@ -1,7 +1,5 @@ -penAPI Documentation - JSON format (dot notation) -post.responses.default.description = Return all objects with enrich fields +# openAPI Documentation - JSON format (dot notation) post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich one field of each Object with a Python function post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query @@ -12,6 +10,18 @@ post.parameters.1.name = indent post.parameters.1.schema.type = boolean post.parameters.1.description = Indent or not the JSON Result +post.parameters.2.in = query +post.parameters.2.name = output +post.parameters.2.schema.type = string +post.parameters.2.description = result format [doc] ou [json] +post.parameters.2.schema.enum = [doc, json] +mimeType = application/json +post.summary = stemming en francais +post.responses.description = fourni la racine (stem) de chaque mot +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.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 +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = le déplacement chimique des carbone en phase gazeux et en fonction de le concentration dans dix-neuf solvant dans le but de séparer le différent terme de constante devoir aux interaction [use] plugin = @ezs/spawn