自然语言处理命令行工具

Tisane CLI是一个面向自然语言处理(NLP)和内容审核的命令行工具,提供文本分析、语言检测、内容审核、实体提取和情感分析等功能。

  • by ktmcp-cli
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 ktmcp-cli/tisane

使用说明

“六个月前,每个人都在谈论MCP。我当时想,拧紧MCP。每个MCP作为CLI都会更好。”

— 彼得·斯坦伯格OpenClaw创始人 在YouTube上观看(~2:39:00) | 莱克斯·弗里德曼播客#491

Tisane CLI

生产就绪的命令行界面 草药茶 NLP和内容审核API。直接从终端分析文本、检测语言、调节内容、提取实体和分析情感。

免责声明:这是一个非官方的CLI工具,不隶属于Tisane Labs,也不受其认可或支持。

特性

  • 解析 --具有实体和主题提取的完整NLP分析管道
  • 节制 --检测虐待、仇恨言论和违反政策的行为
  • 情绪 --分析情绪评分和标签
  • 实体 --提取命名实体(人、地点、组织)
  • 变换 --语法修正与文本转换
  • JSON输出 --所有命令支持 --json 用于脚本和管道
  • 彩色输出 --用粉笔清洁、可读的终端输出

为什么选择CLI>MCP

MCP服务器是复杂的、有状态的,需要一个正在运行的服务器进程。CLI是:

  • 更简单 --只是一个你直接调用的二进制文件
  • 可组合 --管道输出至 jq, grep, awk,和其他工具
  • 可编写脚本的 --在shell脚本、CI/CD管道、cron作业中使用
  • 可调试 --看看到底发生了什么 --json 旗帜
  • AI友好 --AI代理可以像MCP一样轻松地调用CLIs,开销更少

安装

npm install -g @ktmcp-cli/tisane

身份验证设置

从获取API密钥 Tisane开发者门户.

配置CLI

tisane config set --api-key YOUR_API_KEY

命令

配置

tisane config set --api-key <key>
tisane config show

解析(完整NLP分析)

# Full NLP analysis
tisane parse text --text "Apple is looking at buying U.K. startup for $1 billion"

# With specific language
tisane parse text --text "Bonjour le monde" --language fr

# Detect language
tisane parse detect --text "こんにちは世界"

内容审核

# Check for abusive content
tisane moderation check --text "Some text to moderate"

# With language specification
tisane moderation check --text "Texto para moderar" --language es

情感分析

# Analyze sentiment
tisane sentiment analyze --text "I love this product, it's amazing!"
tisane sentiment analyze --text "This is terrible, never buying again." --language en

实体提取

# Extract named entities
tisane entities extract --text "Elon Musk founded SpaceX in 2002 in Hawthorne, California"

# Extract topics
tisane entities topics --text "The Federal Reserve raised interest rates amid inflation concerns"

文本转换

# Fix spelling and grammar
tisane transform fix --text "Ths sentance has sum errers in it"

# With language
tisane transform fix --text "Il y a des erreurs" --language fr

JSON输出

所有命令支持 --json 对于机器可读输出:

# Get full analysis as JSON
tisane parse text --text "Hello world" --json

# Extract only entities
tisane entities extract --text "..." --json | jq '.[] | {type, text}'

# Get sentiment score
tisane sentiment analyze --text "..." --json | jq '.sentiment'

例子

内容审核管道

# Read text from file and moderate
cat user_comment.txt | xargs -I{} tisane moderation check --text "{}"

# Batch moderate with jq
echo '["Hello", "Hate message here"]' | jq -r '.[]' | while read line; do
  tisane moderation check --text "$line" --json
done

实体提取工作流

# Extract all person entities
tisane entities extract --text "..." --json | jq '.[] | select(.type == "Person") | .text'

贡献

欢迎在 github.com/ktmcp-cli/tisane.

许可证

麻省理工学院——见 许可证 了解详情。


部分 KTMCP-CLI 项目——用简单、可组合的CLI替换MCP。


支持KTMCP

如果您发现此CLI有用,我们将非常感谢您的支持!分享您的经验:

  • 红迪
  • 推特/X
  • 黑客新闻

激励: 能够证明他们的支持/倡导有助于推进KTMCP的用户将优先考虑他们的功能请求和问题。

请注意,这些是真实的账户和真实的社区。真实的提及和真实的推荐会有很长的路要走!

支持这个项目

如果您发现此CLI有用,我们将感谢Reddit、Twitter、Hacker News或Moltbook的支持。请注意,这些是真实的社区账户。能够证明其支持有助于推进KTMCP的贡献者将优先考虑其PR和功能请求。