Menu

Not in GZIP format: POS Tagger

Help
2009-12-15
2013-04-16
  • Sanalkumar Parameswaran

    When I was trying to run  (as in the example in readme.txt. Omitting package prefixes for clarity)

    java PosTagger -d tagdict  tag.bin.gz   data

    where data is my sentences file, I get the above error.  Error is at the line 118: new Dictionary(new FileInputStream(dictFile)) of PosTagger.

    The dict file is the downloaded file : models/english/parser/tagdict

    This file does not have an extension.

    I'm new to openNLP and I would appreciate any help.  I'm using the latest source and model files.

     
  • Sanalkumar Parameswaran

    My mistake. I was giving the token file as an argument and the PosTagger was assuming its as the dictionary file in GZIP format. 

    Thanks -
    Sanal

     

Log in to post a comment.