objective-c – Xcode – OpenEars语言模型文件错误

objective-c – Xcode – OpenEars语言模型文件错误,第1张

概述我正在尝试使用OpenEars但是我遇到了一个恼人的错误. 我在将languagemodel文件添加到项目后尝试运行应用程序时立即启动该错误. 这是错误: Lex /Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm cd "/U 我正在尝试使用OpenEars但是我遇到了一个恼人的错误.
我在将languagemodel文件添加到项目后尝试运行应用程序时立即启动该错误.
这是错误:

Lex /Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm    cd "/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3"    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"    lex -o/Users/ilizabetabibi/library/Developer/Xcode/DerivedData/TTSTest3-dsfbczwtfautfsglnlohlfwwgmjt/Build/Intermediates/TTSTest3.build/DeBUG-iphonesimulator/TTSTest3.build/DerivedSources/4075.languagemodel.yy.m "/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm"/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:6: name defined twice/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:9: name defined twice/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: bad character: \/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: unkNown error processing section 1/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: unkNown error processing section 1/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:12: bad character: \/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:14: name defined twice/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:15: name defined twice/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: \/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: 1/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: -/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: unkNown error processing section 1/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:17: bad character: :/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: -/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 0/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: ./Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 7/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 7/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 8/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: 2/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: </Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: //Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: unkNown error processing section 1/Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:18: bad character: /Users/ilizabetabibi/Desktop/Adi apps/TTSTest3/TTSTest3/../../../../Downloads/TAR4075/4075.languagemodel.lm:58: premature EOFCommand /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex Failed with exit code 1

这是语言模型文件:

\data\ngram 1=10ngram 2=16ngram 3=8-grams:-0.7782 </s> -0.3010-0.7782 <s> -0.2218-1.6812 BACKWARD -0.2218-1.6812 FORWARD -0.2218-1.6812 GO -0.2218-1.6812 left -0.2218-1.6812 RIGHT -0.2218-1.6812 START -0.2218-1.6812 Stop -0.2218-1.6812 TURN -0.2218-grams:-1.2041 <s> BACKWARD 0.0000-1.2041 <s> FORWARD 0.0000-1.2041 <s> GO 0.0000-1.2041 <s> left 0.0000-1.2041 <s> RIGHT 0.0000-1.2041 <s> START 0.0000-1.2041 <s> Stop 0.0000-1.2041 <s> TURN 0.0000-0.3010 BACKWARD </s> -0.3010-0.3010 FORWARD </s> -0.3010-0.3010 GO </s> -0.3010-0.3010 left </s> -0.3010-0.3010 RIGHT </s> -0.3010-0.3010 START </s> -0.3010-0.3010 Stop </s> -0.3010-0.3010 TURN </s> -0.3010-grams:-0.3010 <s> BACKWARD </s>-0.3010 <s> FORWARD </s>-0.3010 <s> GO </s>-0.3010 <s> left </s>-0.3010 <s> RIGHT </s>-0.3010 <s> START </s>-0.3010 <s> Stop </s>-0.3010 <s> TURN </s>\end\

我真的希望你能帮助我.
最好的问候,阿迪.

解决方法 OpenEars开发人员在这里.通常,最好在OpenEars论坛中询问与OpenEars相关的故障排除问题,因为我通常不支持Stack Overflow上的OpenEars,这不太可能成为影响许多Stack Overflow用户的问题.要解决此问题,请从OpenEars文档中尝试以下步骤,该文档从您使用CMU工具生成语言模型开始:

Download and unzip the archive. In this archive will be a file with
the suffix “.lm” which you should name to whatever you like with the
suffix .languagemodel (for instance,myvoiceproject.languagemodel). Do
this renaming Now in the Finder (not later after you have imported the
file into Xcode),making sure that you don’t accIDentally remove the
suffix while renaming. You can verify this by dragging the file into
Terminal.app and seeing what Terminal.app thinks the file is called,
which will match what Xcode will think it is called.

这一步的原因是,根据版本,Xcode有时会忽略,有时会尝试使用后缀.lm编译文件.

总结

以上是内存溢出为你收集整理的objective-c – Xcode – OpenEars语言模型文件错误全部内容,希望文章能够帮你解决objective-c – Xcode – OpenEars语言模型文件错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1019140.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存