Hi all!
I'm trying to automate the ID-Based Alignment through a batch script.
If I do it without using any custom filter configuration it works like a charm:
call %okapiPath%\rainbow.exe -pln W:\Tools\ENGTools\Pipelines\id_based_alignment.pln -sl %SLC% -tl %TLC% %original_path%\src\*.json %original_path%\tgt\*.json -np -log %original_path%\log.txt
The issue arises when I try to indicate the command to use a custom filter configuration:
call %okapiPath%\rainbow.exe -pln W:\Tools\ENGTools\Pipelines\id_based_alignment.pln -sl %SLC% -tl %TLC% -pd %original_path% %original_path%\src\*.json -fc okf_...@json.fprm %original_path%\tgt\*.json -fc okf_...@json.fprm -np -log %original_path%\log.txt
This is producing an empty TMX file and the log shows the following:
-------------------------------------------------------------------------------
Rainbow - Command-Line Mode
Version: 1.47.0
-------------------------------------------------------------------------------
net.sf.okapi.common.exceptions.OkapiException: Unsupported filter type 'okf_...@json.fprm'.
at net.sf.okapi.steps.common.RawDocumentToFilterEventsStep.handleEvent(RawDocumentToFilterEventsStep.java:126)
at net.sf.okapi.common.pipeline.Pipeline.execute(Pipeline.java:117)
at net.sf.okapi.common.pipeline.Pipeline.process(Pipeline.java:227)
at net.sf.okapi.common.pipeline.Pipeline.process(Pipeline.java:199)
at net.sf.okapi.common.pipelinedriver.PipelineDriver.processBatch(PipelineDriver.java:182)
at net.sf.okapi.applications.rainbow.pipeline.PipelineWrapper.execute(PipelineWrapper.java:484)
at net.sf.okapi.applications.rainbow.pipeline.PipelineWrapper.execute(PipelineWrapper.java:423)
at net.sf.okapi.applications.rainbow.CommandLine.launchPipeline(CommandLine.java:376)
at net.sf.okapi.applications.rainbow.CommandLine.execute(CommandLine.java:102)
at net.sf.okapi.applications.rainbow.Main.main(Main.java:49)
I've tried several things, like testing the filter in an isolated way (it works) and using Rainbow from the Gui (which also works). I'm starting to thing the issue is the syntax on my command but at this point I'm completely stuck, anyone can help?