我在 Xamarin.Forms 应用程序中使用 Google Cloud Speech API。不幸的是,API 只是在一段文本中返回口语,没有标点符号、问号等。我知道这可以通过使用 Google Cloud Natural Language API 来完成,但德语尚不存在。我还研究了斯坦福 NLP,但我不知道如何将文本分成句子。
例如,我想转
“Die Sonne scheint die Katze ist weiss”(阳光明媚,猫是白色的)
进入
“Die Sonne scheint。Die Katze ist weiss。” (阳光明媚。猫是白色的。)