{
    "openapi": "3.0.0",
    "info": {
        "title": "英文智能分词 - API文档",
        "version": "1.0.0",
        "description": "本接口专为英文文本分词设计，基于统计语言模型智能切分为合理单词序列。支持英文符号混杂分词，也特别擅长处理无空格粘连的长字符串（如 \"thereisamassoftext\"）。适用于数据清洗、自然语言处理预处理、关键词提取等场景。请求成功后接口返回分词结果及分词数。为保障服务稳定性，单次请求文本长度限制为 3000 字符。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/entokenize\/index": {
            "get": {
                "summary": "英文智能分词",
                "tags": [
                    "英文智能分词"
                ],
                "description": "支持将无空格粘连文本英文切分为合理单词",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "description": "英文文本内容",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "hellothere",
                            "description": "英文文本内容"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "list": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            },
                                            "example": "[]",
                                            "description": "分词结果"
                                        },
                                        "count": {
                                            "type": "int",
                                            "example": 2,
                                            "description": "词数"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            "hello",
                                            "there"
                                        ],
                                        "count": 2
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "英文智能分词",
                "tags": [
                    "英文智能分词"
                ],
                "description": "支持将无空格粘连文本英文切分为合理单词",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "hellothere",
                                        "description": "英文文本内容"
                                    }
                                },
                                "required": [
                                    "key",
                                    "text"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "list": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            },
                                            "example": "[]",
                                            "description": "分词结果"
                                        },
                                        "count": {
                                            "type": "int",
                                            "example": 2,
                                            "description": "词数"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            "hello",
                                            "there"
                                        ],
                                        "count": 2
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}