LiteyukiBot-TriM/unused_plugin/liteyuki_smart_reply/utils.py

14 lines
219 B
Python
Raw Permalink Normal View History

2024-07-17 19:22:33 +00:00
from jieba import lcut
from nonebot.utils import run_sync
@run_sync
def get_keywords(text: str) -> list[str, ...]:
"""
获取关键词
Args:
text: 文本
Returns:
"""
return lcut(text)