摘要:
import asyncio import jieba import logging from typing import Any, List from rank_bm25 import BM25Okapi # 配置日志 logging.basicConfig(level=logging.INFO, 阅读全文
posted @ 2026-01-20 16:14
BlogMemory
阅读(6)
评论(0)
推荐(0)
摘要:
from rank_bm25 import BM25Okapi from typing import Any import asyncio class Reranker: async def cut(self, text: str): # 模拟异步分词(实际可替换为 jieba 异步分词) awai 阅读全文
posted @ 2026-01-20 16:13
BlogMemory
阅读(3)
评论(0)
推荐(0)

浙公网安备 33010602011771号