Support for Chinese Simplified Language #416
Replies: 7 comments
-
would like to be a volunteer. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I've added empty Did I get the correct native name for Simplified Chinese? 中文 |
Beta Was this translation helpful? Give feedback.
-
I'm contributing sentences for Chinese and have a little problem. # sentences/zh/cover_HassOpenCover.yaml
language: zh
intents:
HassOpenCover:
data:
- sentences:
- "打开 [<area>] <name>"
slots:
name: all
- sentences:
- "打开车库门"
slots:
device_class: garage_door
- sentences:
- "打开 [<area>] 窗帘"
slots:
device_class:
- blind
- curtain
- shutter # sentences/zh/fan_HassTurnOn.yaml
language: zh
intents:
HassTurnOn:
data:
- sentences:
- "打开 [<area>] (<name> | 风扇)"
slots:
domain: fan # tests/zh/cover_HassOpenCover.yaml
language: zh
tests:
- sentences:
- "打开左侧窗帘"
intent:
name: HassOpenCover
slots:
domain: cover
name: cover.curtain_left
|
Beta Was this translation helpful? Give feedback.
-
$ python3 -m script.intentfest parse --language zh --sentence '打开左侧窗帘'
{
"text": "打开左侧窗帘",
"match": true,
"intent": "HassTurnOn",
"slots": {
"name": "cover.curtain_left",
"domain": "fan"
}
}
$ python3 -m script.intentfest parse --language zh --sentence '打开卧室的左侧窗帘'
{
"text": "打开卧室的左侧窗帘",
"match": true,
"intent": "HassTurnOn",
"slots": {
"area": "bedroom",
"name": "cover.curtain_left",
"domain": "fan"
}
} I think that the corresponding domain can be found through the entity name, and the corresponding sentence can be used more precisely according to the domain. |
Beta Was this translation helpful? Give feedback.
-
@al-one This is similar to Urdu. I have a solution that I will try to get merged very soon. This will add the ability to restrict an intent match to a specific domain, and the test entities will have their domain with them. I'll update here when it's ready 👍 |
Beta Was this translation helpful? Give feedback.
-
@synesthesiam Thanks for your great work. |
Beta Was this translation helpful? Give feedback.
-
Is there any progress for this ? |
Beta Was this translation helpful? Give feedback.
-
I would like to be a volunteer.
Beta Was this translation helpful? Give feedback.
All reactions