0

我是 cTAKES 的新用户。我遵循了用户安装指南并添加了 UMLS 访问权限。在我编辑了 runctakesCPE.bat 和 runctakesCVD.bat 之后,我得到了以下信息:

F:\apache-ctakes-4.0.0>设置 CTAKES_HOME=F:\apache-ctakes-4.0.0

F:\apache-ctakes-4.0.0>如果存在 "F:\apache-ctakes-4.0.0\bin\runctakesCVD.bat" 转到 okHome

F:\apache-ctakes-4.0.0>如果存在 "C:\Program Files\Java\jdk1.8.0_65\bin\java.exe" 设置 PATH=C:\Program Files\Java\jdk1.8.0_65\bin ;C:\Program Files\Java\jdk1.8.0_65\bin;C:\Program Files\Java\jdk1.8.0_65\jre\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files ( x86)\Intel\iCLS 客户端\;C:\Program Files\Intel\iCLS 客户端\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\ WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program File (x86)\Intel\Intel(R) Management Engine Components\DAL;C: \Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Hewlett-Packard \HP Performance Advisor;C:\Program Files\Microsoft\Web Platform Inst aller\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windo ws Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Program Files (x86)\MiKTeX 2.9\miktex\bi n\;C:\Program Files\MATLAB\R2015b\runtime\win64;C:\Program Files\MATLAB\R2015b\bin;C:\Program Files\IBM\SPSS\Statistics\24\JRE\bin;C:\cygwin64\bin;C:\ Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files\Java\jdk1.8.0_65\bin;C:\Program Files\Java\jdk1 .8.0 _65\jre\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows \system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System3 2\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)管理引擎组件\IPT;C:\Program Files (x86)\Intel\Intel(R) 管理引擎组件\IPT;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files \Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\W indows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs \Git\cmd;C:\Users\yi chen\AppData\Local\Programs\EmEditor\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\ Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\W indows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn \;C :\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs \Git\cmd;C:\Users\yi chen\AppData\Local\Programs \EmEditor\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\ Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\W indows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn \;C :\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs \Git\cmd;C:\Users\yi chen\AppData\Local\Programs \EmEditor\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Microsoft\Web Platform Installer\;C :\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\W indows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\ Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs\Git\cmd;C:\Users \yi chen\AppData\Local\Programs\EmEditor\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Microsoft\Web Platform Installer\;C :\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\W indows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\ Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs\Git\cmd;C:\Users \yi chen\AppData\Local\Programs\EmEditor\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs\Git\cmd; C:\Users\yi chen\AppData\Local\Programs\EmEditor\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Python27;C:\Users\yi chen\AppData\Local\Programs\Git\cmd; C:\Users\yi chen\AppData\Local\Programs\EmEditor

F:\apache-ctakes-4.0.0>cd F:\apache-ctakes-4.0.0

F:\apache-ctakes-4.0.0>IF "" == "" GOTO NoParam

F:\apache-ctakes-4.0.0>echo 使用GUI选择要加载的AE 使用GUI选择要加载的AE

F:\apache-ctakes-4.0.0>java -Dctakes.umlsuser= "F:\apache-ctakes-4.0.0\desc\;F:\apache-ctakes-4.0.0\ 资源\;F:\apache -ctakes-4.0.0\lib*" -Dlog4j.configuration=file:\F:\apache-ctakes-4.0.0\config\l og4j.xml -Xms512M -Xmx3g org.apache.uima.tools.cvd.CVD 0-cp 系统找不到指定的文件。

F:\apache-ctakes-4.0.0>GOTO 更改返回

任何人都可以帮助弄清楚吗?我真的需要你的帮助。谢谢!

4

1 回答 1

2

为了将来遇到此问题的人而回答此问题。

@jhshi:您在 runCVD.bat 中所做的更改似乎不正确。

该文档要求您在每个 bat 文件(或最亲爱的 Linux 用户的 sh 文件)中添加您的 UMLS 帐户用户名和密码。这意味着每个 cTAKES 用户都必须在这里 创建一个 UMLS 帐户。

这是使用 java cmd 行参数“-Dctakes.umlsuser”和“-Dctakes.umlspw”完成的。从下面的 runCVD.bat 文件中查看我的 java 调用行。

java -Dctakes.umlsuser="gprakhar" -Dctakes.umlspw="XXXXXXX" -cp "%CTAKES_HOME%\desc\;%CTAKES_HOME%\resources\;%CTAKES_HOME%\lib\*" -Dlog4j.configuration=file:\%CTAKES_HOME%\config\log4j.xml -Xms512M -Xmx2g org.apache.uima.tools.cvd.CVD

您所做的是将一些类似 PATH 的变量的值传递给 umlsuser cmd 行参数。

于 2017-10-23T10:30:42.000 回答