添加基于NLTK的模板过滤器。
项目描述
lektor-natural-language
这是一个Lektor插件,提供了一些简单的模板过滤器,使用自然语言工具包(nltk)。
提供以下过滤器
sentences_filter
接受一段文本字符串并返回其句子列表。
用法: {{ this.text|sentences }}
firstsentences_filter
接受一段文本字符串并返回其第一句。
用法: {{ this.text|firstsentence }}
sentences_filter
接受一段文本字符串,并返回其关键字列表,这些关键字由nltk的Rake确定。
用法: {{ this.text|keywords }}
项目详情
关闭
哈希值 for lektor_natural_language-0.3.1-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 1b3b039bf12a2887d8bedde8bc4d587f3dd8421af1cd33d74bc79225928e8aba |
|
MD5 | f19457ef145041136944a6f2d53437d3 |
|
BLAKE2b-256 | e9651ab5774a105e4db0e5212de44963fc217b8d3027f67979cc8df8c45914a8 |