> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# tokenize

> 根据指定的分词器将文本拆分解析为标记数组。

根据指定的分词器将文本拆分并解析为标记。

## 语法

```sql theme={null}
ARRRY<VARCHAR> tokenize(VARCHAR tokenizer_name, VARCHAR content);
```

## 参数

* `tokenizer_name`：要使用的分词器。有效值：`english`、`standard` 和 `chinese`。

* `content`：要进行分词的文本。此项可以是常量字符串或列名。如果指定为列，则必须是 STRING 或 VARCHAR 类型。

## 返回值

返回一个 VARCHAR 数组。

## 示例

```sql theme={null}
MYSQL > SELECT tokenize('english', 'Today is saturday');
+------------------------------------------+
| tokenize('english', 'Today is saturday') |
+------------------------------------------+
| ["today","is","saturday"]                |
+------------------------------------------+

```

## Keyword

TOKENIZE


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.