On 5/26/11 7:22 PM, maha jarallah wrote:
Hi everyone,

I tried to use sentence detector command tool by following the instruction in 
the documentation so I wrote
$bin/opennlp SentenceDetector en-sent.bin<  input.txt>  output.txt

First I wrote the above command in the command line in windows and it does not 
recognize the $bin

then I used Windows powershell but it always gives me error
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.


PS C:\cs>  $bin en-sent.bin Test.txt output.txt
Unexpected token 'en-sent.bin' in expression or statement.
At line:1 char:17
+ $bin en-sent.bin<<<<   Test.txt output.txt
     + CategoryInfo          : ParserError: (en-sent.bin:String) [], 
ParentContainsErrorRecordException
     + FullyQualifiedErrorId : UnexpectedToken

what is the wrong?                                      
                                        

On windows you eventually need to type something like this:
bin\opennlp.bat SentenceDetector en-sentbin < intput.txt > output.txt

Jörn

Reply via email to