web-services / geo-tagger /
@Lucas Anki Lucas Anki authored on 7 Mar 2022
..
v1 update readme and minor fix 2 years ago
README.md update example 2 years ago
examples.http update example 2 years ago
requirements.txt fix 2 years ago
swagger.json fix 2 years ago
README.md

geo-tagger

Cette instance propose un outil de détéction d'entités géographiques dans des textes anglais.

utilisation

Ce service permet de détecter des entités géographiques dans des textes anglais. Ce web service prend en entrée du JSON avec deux champs: id et value, et renvoie un JSON avec les entités géographiques détéctées dans le champ value.

Exemple

$ cat <<EOF | curl -X POST --data-binary @- "http://geo-tagger-6.tdmservices.intra.inist.fr/v1/geoTagger/geoTagger?indent=true"
[{"id":"1","value":"In the southern French Massif Central, the Montagne Noire axial zone is a NE-SW elongated granite-migmatite dome emplaced within Visean south-verging recumbent folds and intruded by syn- to late-migmatization granitoids. The tectonic setting of this dome is still disputed, thus several models have been proposed. In order to better understand the emplacement mechanism of this dome, petrofabric and Anisotropy of Magnetic Susceptibility (AMS) studies have been carried out. In the granites and migmatites that form the dome core, magmatic texture and to a lesser extent weak solid-state texture are dominant. As a paramagnetic mineral, biotite is the main carrier of the magnetic susceptibility. On the basis of 135 AMS sites, the magnetic fabrics appear as independent of the lithology but related to the dome architecture. Coupling our results with previous structural and geochronological studies, allows us to propose a new emplacement model. Between 340-325 Ma, the Palaeozoic series underwent a compressional deformation represented by nappes and recumbent folds involving the thermal event leading to partial melting. Until ~325-310 Ma, the dome emplacement was assisted by diapiric processes. An extensional event took place at 300 Ma, after the emplacement of the late to post-migmatitic granitic plutons. In the northeast side of the dome, a brittle normal-dextral faulting controlled the opening of the Graissessac coal-basin."},
 {"id":"2","value":"The COVID-19 pandemic, also known as the coronavirus pandemic, is an ongoing global pandemic of coronavirus disease 2019 (COVID-19) caused by severe acute respiratory syndrome coronavirus2 (SARS-CoV-2). It was first identified in December 2019 in Wuhan, China. The World Health Organization declared the outbreak a Public Health Emergency of International Concern on 20 January 2020, and later a pandemic on 11 March 2020. As of 2 April 2021, more than 129 million cases have been confirmed, with more than 2.82 million deaths attributed to COVID-19, making it one of the deadliest pandemics in history."}]
EOF

Sortie

[{
    "id": "1",
    "value": [
        "Massif Central",
        "Montagne Noire",
        "Visean",
        "Graissessac"
    ]
},
{
    "id": "2",
    "value": [
        "Wuhan",
        "China"
    ]
}]

Persee Baip tagger

Cette instance propose un outil de détection d'organismes scolaires et de localisation dans des bulletins administratifs de l'instruction publique pour Persee.

utilisation

Ce service permet de détecter des organismes scolaires, des localisations, ainsi que des opérations (transformation, nomination, affectation, etc) dans les bulletins administratifs de l'instruction publique. Ce web service prend en entrée du JSON avec deux champs: id et value, et renvoie un JSON avec un dictionnaire contenant les organismes scolaires, localisations et opérations trouvées dans le champs value.

Exemple

$ cat <<EOF | curl -X POST --data-binary @- "http://geo-tagger-6.tdmservices.intra.inist.fr/v1/perseeBaipTagger/tagger?indent=true"
[{"id":"1","value":"Personnel de l'Ecole normale primaire de Barcelon-nette. Personnel du Collège impérial de France et du collège communal de Confolens. Personnel de la Faculté des lettres de Dijon."},
{"id":"2","value":"Ecole normale supérieure. — M. Boulangier, agrégé des sciences phy¬ siques, professeur de physique au lycée impérial de Bar-le-Duc, ancien élève de l'école normale supérieure, est nommé préparateur de .chimie à ladite école, en remplacement de M. Debray."}]
EOF

Sortie

[{
    "id": "1",
    "value": {
        "loc": [
            "Barcelon-nette",
            "France",
            "Confolens",
            "Dijon"
        ],
        "org": [
            "Ecole normale primaire de Barcelon-nette",
            "Collège impérial de France",
            "collège communal de Confolens",
            "Faculté des lettres de Dijon"
        ],
        "basicOrg": [
            "collège",
            "collège",
            "faculté"
        ],
        "operation": []
    }
},
{
    "id": "2",
    "value": {
        "loc": [
            "Bar-le-Duc"
        ],
        "org": [
            "Ecole normale supérieure",
            "lycée impérial de Bar-le-Duc",
            "école normale supérieure",
            "école"
        ],
        "basicOrg": [
            "lycée",
            "école",
            "école"
        ],
        "operation": []
    }
}]