
mapling
Mapling finds things, such as place names, in texts. It returns a csv file with a row for each occurence. For each file, it creates an html page with the things highlighted. Just point mapling to a folder full of documents. Mapling uses textract to extract text from many types of files, including csv, doc, docx, pdf, html, txt and many others.
Usage: $ mapling texts/ --gazetteer=gazetteer/gazetteer.txt --model=de_core_news_sm --html
To install a spaCy model: $ python -m spacy download de_core_news_sm
-
The first approach is to use a gazetteer. Mapling expects a txt file with a row for each place name. Add the
--gazetterargument with the path to your file. This approach lets you search for specific terms (not just places) that appear in the text.$ mapling /dir/with/txt_files --gazetteer="/home/me/gazetter.txt" -
The second approach uses a spaCy named entity recognition model. Add the
--modelargument with the name of an installed spaCy model. If your model is not installed or does not have an ner pipeline, you'll get instructions on how to fix that. This approach will return a large range of entities and places, more than you might list yourself. This is useful for establishing which places, people and organizations appear in a text.$ mapling /dir/with/txt_files --model=de_core_news_md -
Finally, mapling can create visualizations. Add the
--htmlargument$ mapling /dir/with/txt_files --model=de_core_news_md --html
To install:
pip install mapling
In the future, mapling will also work with the Word Historical Gazetteer to rectify, geocode and map your place names.
Release files for mapling 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mapling-0.1.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mapling-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / mapling-0.1.1.tar.gz
| Download URL | mapling-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e7386fd902d7645b2a413a571a1f65b02feca712f7d79ffed5c298c3801a261
|
|
BLAKE2b-256 checksum How to use checksums |
db230e22569854f3c52e171f1a6438895b75dae6db55da9adf81864ad0a0f52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.7 Linux/5.3.0-46-generic
|
Release files / mapling-0.1.1-py3-none-any.whl
| Download URL | mapling-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0b1acbd548618e45e9c8e77ccf11aab16cf1f3c7b9d3177da93ac97d4891f84
|
|
BLAKE2b-256 checksum How to use checksums |
df1123e1e0631fe3f40cd8c0d56020b3281a29da2dc98d333677131dc4af93b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.7 Linux/5.3.0-46-generic
|