# (5) 加入抽換詞類

### 本篇教您的重點

* 如何建立抽換詞類？
* 如何在訓練句中標記抽換詞類？

### 重要概念

* **目的**\
  訓練機器人有效率地聽懂人類語言。
* **建立抽換詞**\
  告訴機器人需要聽懂的語句中，哪些是**可以代換的字詞**，就是建立**抽換詞**。

### 建立步驟

1. 到左&#x6B04;**`機器人編輯`**&#x9EDE;&#x64CA;**`意圖`**&#x9EDE;&#x9078;**`抽換詞類`**
2. 點&#x9078;**`＋`**&#x65B0;增抽換詞類並命名
3. 點選右上&#x89D2;**`＋抽換詞`**
4. 輸入新的抽換詞
5. 可點&#x9078;**`＋同義詞`**&#x586B;入同義詞

![](/files/-LbRzTPfr5g00M4KuErr)

### 標註方式

1. 到左&#x6B04;**`機器人編輯`**&#x9EDE;&#x64CA;**`意圖`**
2. 選取或新增訓練句
3. 在訓練句中加上抽換詞類名稱，如：請問{{**飲品}}**&#x591A;少錢？

![](/files/-LcjSiYHX4PRkzfHABm0)

### 您可能還想知道

* [什麼是抽換詞類？](https://docs.yoctol.ai/term/entity)
* [怎麼訓練和測試？](https://docs.yoctol.ai/guide/training_predict)
* [如何建立意圖及撰寫訓練句？](https://docs.yoctol.ai/guide/add_intent_utterance)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-tw.yoctol.ai/guide/entities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
