Auto Tagify is a simple auto tagging module that uses NLTK to generate tags out of a selection of text. Any text that is less than 3 characters long or matches a particular POS (part-of-speech) will be ignored.
There are two operations Auto Tagify performs - one returns the selection of text with links embedded in the string and the other returns a list of all the taggable words as the stem word (using lemmatization).
For the first operation, everything is optional, but it is most effective to enter some text. Optional parameters you can set are the paths for tag links and the css classes for link. For instance, if you set your tag routing to a relative path such as /tags/<tagged_word> and want to use the css class named “tagged”:
from auto_tagify import AutoTagify
t = AutoTagify()
t.text = “This is the text to display!”
t.link = “/tags”
t.css = “tagged”
t.generate()
The result will be: This is the <a href=”/tags/text” class=”tagged”>text</a> to <a href=”/tags/display” class=”tagged”>display!</a>
If no link is set, the default path is “/<tagged word>”, such as “/text”.
For the second operation, you will only receive a list of all your taggable words from the text. You can call it like so:
t.text = “This text is tagged kittens”
t.tag_list()
The result will be a list: [‘text’, ‘tag’, ‘kitten’]
By default, generate() and tag_list() will be in strict mode, which means all special characters will be stripped and lemmatization will be enforced. If generate(strict=False) or tag_list(strict=False) is set, then special characters will be url encoded and lemmatization will be ignored.
These two operations are sufficient for you to maintain tag counts and tag references to text in your application.
Metadata
Release files for auto_tagify 1.4
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 |
|---|---|---|---|---|
| auto_tagify-1.4.tar.gz | 3.0 kB | Without provenance | Details for auto_tagify-1.4.tar.gz |
Release files / auto_tagify-1.4.tar.gz
| Download URL | auto_tagify-1.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2a091d55eb43cd173ce7154148e3b277b8aff1931c3f011f2832fdc9a6aa662
|
|
BLAKE2b-256 checksum How to use checksums |
89bbc33f3be814ae6dfe895059c4424a96a30eb9499520ae6d3077e556e96940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for auto_tagify 1.4
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.