You need to sign in or sign up before continuing.
Rainbow command-line "-fc" parameter doesn't support custom filter fprms
Reported on the Okapi list by Victor: https://groups.google.com/d/msgid/okapi-users/2a357ab5-c2fc-4e1c-b021-2af6e361adecn%40googlegroups.com
When executing pipelines in batch mode with rainbow, the -fc
option fails if its argument is a custom filter. For example, this works fine:
rainbow.sh -pln extract.pln -sl en -tl es example.xml -np -fc okf_xmlstream -log rainbow.log
However, this fails:
rainbow.sh -pln extract.pln -sl en -tl es example.xml -np -fc okf_xmlstream@custom.fprm -log rainbow.log
When it fails, this stack is logged to the file:
-------------------------------------------------------------------------------
Rainbow - Command-Line Mode
Version: 1.48.0-SNAPSHOT
-------------------------------------------------------------------------------
net.sf.okapi.common.exceptions.OkapiException: Unsupported filter type 'okf_xmlstream@html.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)