Skip to main content

A graph dependency parser to tinker with

Project description

HOPS, an honest parser of sentences

Latest PyPI version Build Status Code style: black

It ain't much but it's honest work.

This is a graph-based dependency parser inspired by Dozat and Manning (2017)'s biaffine graph parser. Contrary to Dozat, the parser performs its own tagging and can use several lexers such as FastText, BERT and others. It has been originally designed within the FlauBERT initiative.

The parser comes with pretrained models ready for parsing French, but it might be trained for other languages without difficulties.

See the documentation for more information.

Citation

If you use this parser for your scientific publication, or if you find the resources in this repository useful, please cite the following paper

@inproceedings{grobol:hal-03223424,
    title = {{Analyse en dépendances du français avec des plongements contextualisés}},
    author = {Grobol, Loïc and Crabbé, Benoît},
    url = {https://hal.archives-ouvertes.fr/hal-03223424},
    booktitle = {{Actes de la 28ème Conférence sur le Traitement Automatique des Langues Naturelles}},
    eventtitle = {{TALN-RÉCITAL 2021}},
    venue = {Lille, France},
    pdf = {https://hal.archives-ouvertes.fr/hal-03223424/file/HOPS_final.pdf},
    hal_id = {hal-03223424},
    hal_version = {v1},
}

Development

If you want a development install (so you can modify the code locally and directly run it), you can install it in editable mode with the tests extras after cloning the repository

git clone https://github.com/hopsparser/hopsparser
cd hopsparser
pip install -e ".[tests,traintools]"

In that case, you can run the smoke tests with tox to ensure that everything works on your end.

Note that using the editable mode requires pip >= 21.3.1.

Licence

This software is released under the MIT Licence, with some files released under compatible free licences, see LICENCE.md for the details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hopsparser-0.7.1.tar.gz (51.9 kB view details)

Uploaded Source

Built Distribution

hopsparser-0.7.1-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file hopsparser-0.7.1.tar.gz.

File metadata

  • Download URL: hopsparser-0.7.1.tar.gz
  • Upload date:
  • Size: 51.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hopsparser-0.7.1.tar.gz
Algorithm Hash digest
SHA256 9a410fb69d8122437bebde664288a163614a1ff7845b1e8ddee8270147a826c9
MD5 2460fd86a51801067b3145bb4f61b101
BLAKE2b-256 0a128da87788d53f43a495448d6d327dbcb5d7bc842ff0438c79ca5363115b9c

See more details on using hashes here.

File details

Details for the file hopsparser-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: hopsparser-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hopsparser-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c34fd92a945eb9a63232068ac89d35c3cbe201914f5cdc73dea28df51a85f25
MD5 cbbfafc60624e80e6a8b23f098aa677b
BLAKE2b-256 ddc9e0dac72c3cdd06395725662c70a26e28f6d32a8fbe66bccd6be32ba15e38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page