方式 4️⃣:Python SDK 代码调用
自己写脚本批量压缩长文档、量化研报、历史对话记录:
from headroom import compress
result = compress(your_text, ratio=0.3)
print(result.compressed)
print(result.original) # 可逆还原
方式 4️⃣:Python SDK 代码调用
自己写脚本批量压缩长文档、量化研报、历史对话记录:
from headroom import compress
result = compress(your_text, ratio=0.3)
print(result.compressed)
print(result.original) # 可逆还原
发表评论