Rainbow through CMD

52 views
Skip to first unread message

Víctor Parra García

unread,
Jun 11, 2023, 4:47:45 AM6/11/23
to okapi-users
Hi folks!
I'm trying to automate preps through bat file using Tikal and Rainbow in Windows.
The bat would do the following

1. Create folder structure:
   00_src (for source files)
   01_prep
      aa_master (for created xlf to work with)
      bb_pseudo (for pseudotranslated xlf and merged final files to check the scope and tags)
      cc_configs (to store segmentation rules and custom parser)
2. It asks me for source and target languages that uses as variables for the Tikal command -x
3. It copies the files to the proper folder once converted
4. It pseudotranslates xlf in bb_pseudo using Rainbow cmd (TextRewriting)
5. Merged pseudotranslated xlf back to its original filetype using Tikal

Everything works as expected except for Rainbow. I'm reading the documentation here Rainbow - Command Line - Okapi Framework but it's not working at all. Using "java -jar + Rainbow.jar in lib folder" gives me an error saying "Error: Unable to access jarfile \\rnb\\lib\\rainbow.jar" while I'm sure the path is correct.
I've also tried using Rainbow.exe through the command line with no luck...

Am I missing anything? Can you please guide me on how to properly use Rainbow in cmd or is it possible do the TextRewriting thingy with Tikal?

I have coded a python script that populates seg-source to targets and makes some S&Rs in targets, expanding vowels and replacing them with special characters, but I'd like the whole process to happen in Okapi.

Thank you so much!
Reply all
Reply to author
Forward
0 new messages