Google 翻译部分语音

Google Translate Part of Speech

我在我的 NodeJS 服务器上设置了 RESTFul Google Cloud Translate

他们的 Google Translate Web Client 提供了大量有用的翻译元数据,包括词性(参见右下角的 noun):

然而他们的 API 服务在响应中提供的数据非常有限:

{
  "translatedText": string,
  "model": string,
  "detectedLanguageCode": string,
  "glossaryConfig": {
    object (TranslateTextGlossaryConfig)
  }
}

问:Google Translate Cloud API 中是否有至少提供词性的版本? 如果没有,是否还有另一个 API 提供更多关于翻译的元数据的服务? 专门寻找西班牙语 POS 标记。

我什至通过 NPM 使用 Natural POS Tagger 手动输入西班牙语单词列表以了解它们的含义,但不幸的是,这种基于 Brill 的标记系统仅适用于荷兰语 (DE) 和英语 (EN).

据此documentation我们可以将词性(pos)添加到词汇表中,不幸的是此时Google翻译API不支持pos信息。

目前此功能只能通过 Google 翻译网络界面使用。

功能请求:

但是,您可以让 Google 知道这是一项对于访问他们的 API 很重要的功能,并且您希望请求他们实现它。

Google 的 Issue Tracker is a place for developers to report issues and make feature requests for their development services. I'd urge you to make a feature request there. The best component to file this under would be the AI and Machine Learning,使用 Feature Request 模板。