I'm trying to run the program bayes-seg with: cat data/books/clinical/050.ref | ./segment config/dp.config
using Powershell.
I understand that the command cat
outputs the file and pipe
will use the output as a parameter to ./segment config/dp.config
When running the above command. I'm met with the exception:
Cannot run a document in the middle of a pipeline: C:\Users\name\Desktop\bayes-seg-master\segment.At line:1 char:35+ cat data/books/clinical/050.ref | ./segment config/dp.config+ CategoryInfo: InvalidOperation: (C:\Users\name\...-master\segment:String) [], RuntimeException+ FullyQualifiedErrorId : CantActivateDocumentInPipeline
What causes this exception? I've looked around on Google and could not find anything which explains the exception in detail. Any help would be greatly appreciated.