[CWB] Confusing instruction in command help
Andrés Chandía
andres.chandia at upf.edu
Sun Oct 30 21:18:15 CET 2022
Or, what am I doing wrong?
I have indexed a corpus via terminal, if I go to the web interface and go
to Admin Control Panel → Install new corpus → Click here to install a
corpus you have already indexed in CWB:
Specify the corpus “mycorpusname”
Enter the full descriptive name of the corpus "My full descriptive name"
stylesheet yellow
Install corpus with settings above
and everything goes ok.
Then I uninstall it form the web interface and check there is no trace in
CQPWeb directory nor in CQPWeb database
Now I try using the install-corpus.php script
cd /cqpweb/bin
first I check help file and here's the first confusing command flag
* --external_cwb_data
Optional. If the flag is present, installation is based on existing CWB
data. If not, it is based on installing from VRT files.
does "on existing CWB data" mean a corpus previously indexed by command
line?
if so, why if I add it, I get this?
ERROR: no input files specified. Please specify --file=FILENAME (at least
once).
and if I do not add it I get this?
A corpus by that name already exists in the CQPweb registry!
even though I've checked there is no trace of previous installation in
CQPWeb
My current commands are these two:
cd /cqpweb/bin
php install-corpus.php --corpus_name mycorpus --corpus_description "My
Corpus Description" --cssBuiltIn --corpus_useDefaultRegistry
or
php install-corpus.php --external_cwb_data --corpus_name mycorpus
--corpus_description "My Corpus Description" --cssBuiltIn
--corpus_useDefaultRegistry
I have also tried with --file= but this should not be if I have my corpus
already indexed, right?:
php install-corpus.php --external_cwb_data --file="/home/user/corpus.txt"
--corpus_name="mycorpus" --corpus_description="My Corpus Description"
--cssBuiltIn --corpus_useDefaultRegistry
but then it asks me for
ERROR: an essential setting was not spe3cified. Please add option for
--corpus_charset.
when this was already set in the command line indexation....
*** the "spe3cified" is a typo in the code *** not mine...
So, what would be the correct form to do it in the scenario I've described?
As always, thanks very much for your help and patience.
Andrés Chandía
Unitat de Traducció i Ciències del Llenguatge
Roc Boronat 138, C. P.: 08018, Barcelona
Tel.: 935 055 722 - mail:andres.chandia at upf.edu <andres.chandia at upf.edu>
<http://www.chandia.net> <https://twitter.com/chandianet>
mail:andres at chandia.net <andres at chandia.net>
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20221030/c6aa8fb1/attachment.html>
More information about the CWB
mailing list