Le Boucher d'Amsterdam
Boudams, or "Le boucher d'Amsterdam", is a deep-learning tool built for tokenizing Latin or Medieval French languages.
How to cite
An article has been published about this work : https://hal.archives-ouvertes.fr/hal-02154122v1
@unpublished{clerice:hal-02154122,
TITLE = {{Evaluating Deep Learning Methods for Word Segmentation of Scripta Continua Texts in Old French and Latin}},
AUTHOR = {Cl{\'e}rice, Thibault},
URL = {https://hal.archives-ouvertes.fr/hal-02154122},
NOTE = {working paper or preprint},
YEAR = {2019},
MONTH = Jun,
KEYWORDS = {convolutional network ; scripta continua ; tokenization ; Old French ; word segmentation},
PDF = {https://hal.archives-ouvertes.fr/hal-02154122/file/Evaluating_Deep_Learning_Methods_for_Tokenization_of_Scripta_Continua_in_Old_French_and_Latin%284%29.pdf},
HAL_ID = {hal-02154122},
HAL_VERSION = {v1},
}
How to
Install the usual way you install python stuff: python setup.py install (Python >= 3.6)).
The config file can be kickstarted using boudams template config.json, we recommend using the following settings :
linear-conv-no-posfor the model, as it is not limited by the input size;normalizeandlowertoTruedepending on your dataset size.
The initial dataset is pretty small but if you want to build with your own, it's fairly simple : you need data in the
following shape : "samesentence<TAB>same sentence" where the first element is the same than the second but with no
space and they are separated by tabs (\t, marked here as <TAB>).
{
"name": "model",
"max_sentence_size": 150,
"network": {
"emb_enc_dim": 256,
"enc_n_layers": 10,
"enc_kernel_size": 3,
"enc_dropout": 0.25
},
"model": "linear-conv-no-pos",
"learner": {
"lr_grace_periode": 2,
"lr_patience": 2,
"lr": 0.0001
},
"label_encoder": {
"normalize": true,
"lower": true
},
"datasets": {
"test": "./test.tsv",
"train": "./train.tsv",
"dev": "./dev.tsv",
"random": true
}
}
The best architecture I find for medieval French was Conv to Linear without POS using the following setup:
{
"network": {
"emb_enc_dim": 256,
"enc_n_layers": 10,
"enc_kernel_size": 5,
"enc_dropout": 0.25
},
"model": "linear-conv-no-pos",
"batch_size": 64,
"learner": {
"lr_grace_periode": 2,
"lr_patience": 2,
"lr": 0.00005,
"lr_factor": 0.5
}
}
Credits
Inspirations, bits of code and source for being able to understand how Seq2Seq words or write my own Torch module come both from Ben Trevett and Enrique Manjavacas.
Metadata
Release files for boudams 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| boudams-0.1.2.tar.gz | 27.5 kB | Without provenance | Details for boudams-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boudams-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for boudams-0.1.2-py2.py3-none-any.whl |
Total release size: 61.4 kB
Release files / boudams-0.1.2.tar.gz
| Download URL | boudams-0.1.2.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
188bed46f9fb12e17947abaa17cc87b935a9fcacf9d19767aee2ce4529b5d3b4
|
|
BLAKE2b-256 checksum How to use checksums |
c751633b1249c92accd24e0f4695f6f594f513947c55d3daf0bd1243fa574cf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Release files / boudams-0.1.2-py2.py3-none-any.whl
| Download URL | boudams-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 33.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bc43cbaee160571337ad1d0f610deac6e0b5797fe181e6d325c11196232ae7af
|
|
BLAKE2b-256 checksum How to use checksums |
3aa57ffce290e36a3152b23b22157aeac2bcca9d1d5d6f76428361c244cd3647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Security for boudams 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.