Adds NLTK based template filters.
Project description
lektor-natural-language
This is a Lektor plugin that provides a few simple template filters with the Natural Language ToolKit (nltk).
This offers the following filters:
-
sentences_filter
- Accept a string of text and return a list of its sentences. Usage:{{ this.text|sentences }}
-
firstsentences_filter
- Accept a string of text and return its the first sentence. Usage:{{ this.text|firstsentence }}
-
sentences_filter
- Accept a string of text and return a list its keywords as determined bynltk
'sRake
. Usage:{{ this.text|keywords }}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file lektor_natural_language-0.2-py3-none-any.whl
.
File metadata
- Download URL: lektor_natural_language-0.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2be5380539581a26e0ef4387101eba36280ddc42ac61d130d2c2dde793eb4f34 |
|
MD5 | 7049f56ce17f76be0f81bac5f15b1983 |
|
BLAKE2b-256 | 145ad6a93761f33b9a3fe5d3c266c380132e34699b521152584d8a605cbd4b5d |