0

我正在尝试训练话语,每当我为枚举类型概念赋予价值时,它都会告诉我混淆点匹配。混淆点匹配是什么意思?

4

2 回答 2

0

我会检查你是否有枚举类型的词汇文件。如果没有词汇文件,自然语言将无法识别枚举。

于 2019-07-25T13:42:45.977 回答
0

您需要一个词汇文件来支持这些符号。

比如这个。请注意,路径很重要 - 确保它在您的语言环境中。

vocab(Planet) {
  "Mercury" { "Mercury" }
  "Venus" { "Venus" }
  "Earth" { "Earth" "The Old Earth" }
  "Mars" { "Mars" "The Red Planet" }
  "Jupiter" { "Jupiter" }
  "Saturn" { "Saturn" }
  "Uranus" { "Uranus" }
  "Neptune" { "Neptune" }
  "Pluto" { "Pluto" }
}

这是该词汇的关联枚举:

enum (Planet) {
  description (The resort's affiliated planetary system (include the planet and its moons). Since the list and vocab is exhaustive, we can use an enum.)
  symbol (Mercury)
  symbol (Venus)
  symbol (Earth)
  symbol (Mars)
  symbol (Jupiter)
  symbol (Saturn)
  symbol (Uranus)
  symbol (Neptune)
  symbol (Pluto)
}
于 2019-07-25T16:53:28.103 回答