Skip to main content

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 by nltk's Rake.

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

lektor_natural_language-0.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file lektor_natural_language-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lektor_natural_language-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f37dd781f1f35476cfedacb7a600e9dbdbe956fa4062c4f6bb7ee7be622c239
MD5 ac7571fd60d22290afff47c6b498f4d7
BLAKE2b-256 1415fe1694bb5f30f090d424f706380e511604c91ee92f94aacbfc293ded8be1

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