Monday, April 29, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1281  / 1 Year ago, tue, march 14, 2023, 1:50:10
IRSTLM=$HOME/irstlm


I need help setting this variable up. Was wondering if this is correct syntax



IRSTLM=/home/user/irstlm


Is that possible to run from root? I need it to be done in root in order to access certain files, I can also add the rest of the command I am trying to run if you'd like to see the context it's being used inn.



New problem, don't know why but shouldn't this output the file with extension .arpa ? i dont seem to get that file and I require it to run the next command to finish compiling this program.



~/irstlm/bin/add-start-end.sh  < ~/corpus/news-commentary-v7.fr-en.true.en > news-commentary-v7.fr-en.sb.en export IRSTLM=$HOME/irstlm; ~/irstlm/bin/build-lm.sh -i  news-commentary-v7.fr-en.sb.en  -t ./tmp  -p -s improved-kneser-ney -o news-commentary-v7.fr-en.lm.en 


Here is the full command:



/home/user/irstlm/bin/add-start-end.sh  < /home/user/corpus/news-commentary-v7.fr-en.true.en > news-commentary-v7.fr-en.sb.en export IRSTLM=$HOME/irstlm; /home/user/irstlm/bin/build-lm.sh -i  news-commentary-v7.fr-en.sb.en  -t ./tmp  -p  -s improved-kneser-ney -o news-commentary-v7.fr-en.lm.en 

More From » command-line

 Answers
6

I figured it out, thanks for the suggestions, they definitely helped, here the final command I ran, it seems I wasn't correctly setting the variable as "irstlm=/root/irstlm" final command:



 /root/irstlm/bin/add-start-end.sh < /home/user/corpus/news-commentary-v7.fr-en.true.en> news-commentary-v7.fr-en.sb.enexport IRSTLM=$HOME/irstlm; /root/irstlm/bin/build-lm.sh -i news-commentary-v7.fr-en.sb.en -t ./tmp -p -s improved-kneser-ney -o news-commentary-v7.fr-en.lm.en 

[#37264] Wednesday, March 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
thellfi

Total Points: 222
Total Questions: 103
Total Answers: 123

Location: Palau
Member since Mon, Aug 16, 2021
3 Years ago
thellfi questions
;