LiteyukiBot-TriM/src/plugins/liteyuki_smart_reply/utils.py

14 lines
232 B
Python
Raw Normal View History

2024-06-26 13:52:04 +08: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)