mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-14 19:37:44 +08:00
14 lines
219 B
Python
14 lines
219 B
Python
|
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)
|