nikolamilosevic86 / hunpos

Automatically exported from code.google.com/p/hunpos
0 stars 0 forks source link

Hunpos does not tag properly when input/output is piped to/from file #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am running Hunpos 1.0 on Windows XP, using the provided english-wsj 
model. Hunpos works great when I use it interactively, but when I pipe 
input/output to/from file, the tags are all obviously wrong.

Here is my input file (in.txt):

The
quick
red
fox
jumped
over
the
lazy
dogs.

>hunpos-tag english.model <in.txt >out.txt

This is what I get in out.txt:

The
    NNP 
quick
    VBD 
red
    CD  
fox
    CD  
jumped
    CD  
over
    CD  
the
    CD  
lazy
    CD  
dogs.
    JJ  

    NNS 

If I type the same text in manually at the console, the resulting tags are 
completely different.

What gives?

Thanks in advance... Alex Dowad

Original issue reported on code.google.com by alexinbe...@gmail.com on 18 Feb 2010 at 12:06

GoogleCodeExporter commented 9 years ago
Try using Unix newlines (\n) in your input file rather than Windows newlines 
(\r\n). A good text editor should make that possible.

Original comment by gregory....@gmail.com on 6 Aug 2010 at 8:26