简体   繁体   English

如何在Ubuntu中安装和运行TnT(Trigrams'n'标签)?

[英]How do I install and run TnT (Trigrams 'n' Tags) in Ubuntu?

I downloaded the TnT Part-of-Speech Tagger and want to use it on Ubuntu. 我下载了TnT词性分析工具,并想在Ubuntu上使用它。 I have been following the instructions in the manual (setting the path, environment variables) however when I finally type a command, say tnt-para option filename , I get the error " tnt-para: command not found ". 我一直按照手册中的说明进行操作 (设置路径,环境变量),但是当我最终键入命令(例如tnt-para 选项filename)时 ,出现错误“ tnt-para:找不到命令 ”。

What could be the cause for this? 这可能是什么原因? Is there anything else I need to do apart from the first steps: changing path and environment variable? 除了第一步,我还需要做其他事情:更改路径和环境变量吗?

The error means tnt-para is not in your PATH . 该错误意味着tnt-para不在您的PATH Try to cd to the directory where the tnt-para file is and run it like this: 尝试cdtnt-para文件所在的目录并像这样运行它:

./tnt-para option filename

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM