簡體   English   中英

如何使用linux命令傳遞輸入和配置文件

[英]how to pass input and configurations files by using linux command

我有一個可執行文件vs-vectorize ,我想對其進行傳遞, 對其配置文件進行分析 我對linux非常陌生,請原諒。


要分析的文件為xml格式:

<doc id="E0211315">
<text>
Gimme Dat

For the Chris Brown song, see Gimme That

"Gimme Dat" is the second single released off of Chingy's fourth album, Hate It
or Love It. The single features Ludacris and Bobby Valentino.

The video premiered on MTV's TRL and BET's 106 & Park on February 8, 2008. The
song however failed to chart making it his second consecutive single flop from
the album.

 Charts
</text>
</doc>

參數如下:

Usage:
  vectorize --conf=.. --language=.. [--xml-conf=..] --output=.. files 
Options:
  -h [ --help ]         Display this help message
  --conf arg            XML config file
  --xml-conf arg        configuration file for xml analysis (to interpret xml 
                        format of input file)
  --language arg        language of the documents
  --output arg          prefix of the files for outputs


--conf
This option allows to specify the name of the configuration file to use: this file contains all the parameters used for the different steps of the construction of the vector representation (Analyzers, LexiconBuilder, VectorBuilder). More details on the content of the configuration file are given in this page: Configuration File.

--xml-conf
This option allows to specify the name of a configuration file that indicates how to parse the xml input file. This configuration file should respect the XML format defined here: XML Format for the input file parser configuration.

--language
This option specifies the language of the documents (useful in the linguistic analysis step).

--output
This option specifies the base name for the output files created by this program. The main output file containing the vectors will be base.data. If this argument is not set, the base name of the first input file is used (without .xml or .txt extension).

我傳遞的參數如下:

./vs-vectorize documents.xml --conf vs-config.xml --xml-conf configuration.xml

其中documents.xml是要分析的輸入文件,其他是參數文件。

一些修改:

./vs-vectorize --conf="/home/hani/workspace/textvector/conf/vs-config.xml" --language="Eng" --xml-conf="/home/hani/workspace/textvector/release/src/vs-vectorize/configuration.xml" /home/hani/workspace/textvector/release/src/vs-vectorize/documents.xml

什么都沒出來為什么呢? 我究竟做錯了什么?

傳遞文件的完整路徑,例如:/home/hani/documents.xml,而不只是文件名。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM