Skip to main content

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 }}

Release files for lektor-natural-language 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for lektor-natural-language 0.3.1
File Interpreter ABI Platform
lektor_natural_language-0.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / lektor_natural_language-0.3.1-py2.py3-none-any.whl

Download URL lektor_natural_language-0.3.1-py2.py3-none-any.whl
Size 3.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1b3b039bf12a2887d8bedde8bc4d587f3dd8421af1cd33d74bc79225928e8aba
BLAKE2b-256 checksum
How to use checksums
e9651ab5774a105e4db0e5212de44963fc217b8d3027f67979cc8df8c45914a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page