You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Cheng Li <ch...@usc.edu> on 2011/07/23 12:44:55 UTC
parser test question
Hi,
I have a question for the example parser test .
At the site http://tika.apache.org/0.9/parser_guide.html, there is a
sample parser. and it can recognize *.hi format file . Is that right ?
I follow the instruction in that page , and use gedit to create a hi
format file , gedit test.hi , then the gui application of tika can read
the content I type in test.hi.
Then I created another file , name test.ii , the format is ii (maybe
there is some problems here) , and ii format is not one of the format
parser I have added to the tika. But still , when I dragged the test.ii to
the tika gui application , no error message will be displayed .
So I want to ask how you test a parser works or not .
Thanks,
--
Cheng Li
Re: parser test question
Posted by Troy Witthoeft <tr...@gmail.com>.
The Tika GUI will not show an error if you drag an unknown filetype.
If you have not written an ii parser, then Tika will use a default parser.
This default parser will always detect some metadata. (content-length,
filename, etc...)
When you do get around to writing your "iiParser.java" TIKA gui will
display a stack trace if there is something wrong with your code.
> Is in the "parse" method where you will do all your work. This is, extract
> the information of the resource and then set the metadata.
On Sat, Jul 23, 2011 at 6:44 AM, Cheng Li <ch...@usc.edu> wrote:
> Hi,
>
> I have a question for the example parser test .
>
> At the site http://tika.apache.org/0.9/parser_guide.html, there is a
> sample parser. and it can recognize *.hi format file . Is that right ?
>
> I follow the instruction in that page , and use gedit to create a hi
> format file , gedit test.hi , then the gui application of tika can read
> the content I type in test.hi.
> Then I created another file , name test.ii , the format is ii (maybe
> there is some problems here) , and ii format is not one of the format
> parser I have added to the tika. But still , when I dragged the test.ii to
> the tika gui application , no error message will be displayed .
>
> So I want to ask how you test a parser works or not .
>
> Thanks,
>
> --
> Cheng Li
>
>