gpt4 book ai didi

xcode - 命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex 失败,退出代码为 1

转载 作者:行者123 更新时间:2023-12-04 17:00:57 26 4
gpt4 key购买 nike

我正在尝试在我的资源包中包含一个文件,该文件包含以下内容:

LeadPunc="({[`'
TrailPunc=}:;-]!?`,.)"'
NumLeadPunc=#({[@$
NumTrailPunc=}):;].,%
Operators=*+-/.:,()[]
Digits=0123456789
Alphas=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
*extra line*

这些文件被称为:
eng.cube.lm

我得到的错误是:
IExpenseReporter/tessdata/eng.cube.lm:6: premature EOF
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1

此文件与最新版本的 tesseract (OCR) 一起使用。有谁知道是什么导致了这个错误以及如何解决它?

最佳答案

确保在将 tessdata 文件夹添加到项目时选择“创建文件夹引用”选项。

来自 documentation :

NOTE: This library currently requires the tessdata folder to be linked as a referenced folder instead of a symbolic group. If Tesseract can't find a language file in your own project, it's probably because you created the tessdata folder as a symbolic group instead of a referenced folder. It should look like this if you did it correctly:

enter image description here

Note how the tessdata folder has a blue icon, indicating it was imported as a referenced folder instead of a symbolic group.



删除当前文件夹并将其重新添加为文件夹引用应该可以解决问题。

关于xcode - 命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex 失败,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20309913/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com