[
https://issues.apache.org/jira/browse/NUTCH-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083166#comment-13083166
]
Lewis John McGibbney commented on NUTCH-1075:
---------------------------------------------
OK so I attach a seed file including the URLs I tested against with the
o.a.n.ParserChecker
Steps to reproduce are as follows
{code}
$NUTCH-BRANCH-1.4_HOME ant clean
$patch -p0 -i NUTCH-1075.patch
ant runtime
{code}
I then added the language-identifier plugin to plugin.includes property in
nutch-site.xml
some output from http://www.lemonde.fr
{code}
Content Metadata: Age=38 Content-Length=62737 Expires=Thu, 11 Aug 2011 15:23:23
GMT Last-Modified=Thu, 11 Aug 2011 15:18:50 GMT X-Server=britpop
Connection=close Server=Apache Cache-Control=private, max-age=60
Edge-Control=!no-store,max-age=1m X-CDN=Served by Cotendo Date=Thu, 11 Aug 2011
15:23:01 GMT Vary=Accept-Encoding Content-Encoding=gzip Accept-Ranges=bytes
Content-Type=text/html
Parse Metadata: CharEncodingForConversion=windows-1252
caching.forbidden=content OriginalCharEncoding=windows-1252 language=fr
{code}
some output from http://www.groene.nl
{code}
Content Metadata: X-Runtime=46 ETag="9791fa50616231029c669d43da0a7b09"
Content-Length=7887
Set-Cookie=_groene.nl_session=BAh7CDoQX2NzcmZfdG9rZW4iMWpUY0hvYXpoRUpTNVNMU0NnTUs0Snk5TzdPSlF3UFNNWEd1LzdoYTVxUVU9Og9zZXNzaW9uX2lkIiVhYjEzNDBmYmQ0NjJhNGRhYzM2Y2MzOTI4NTk1YjA0MToPaG9tZV92aWV3c2kA--c0f0882428620024c071ff93b6f37e1e0c362008;
path=/; HttpOnly Connection=close Server=Apache X-Powered-By=Phusion Passenger
(mod_rails/mod_rack) 2.2.14 Cache-Control=private, max-age=0, must-revalidate
Status=200 Date=Thu, 11 Aug 2011 15:29:16 GMT Vary=Accept-Encoding
Content-Encoding=gzip Content-Type=text/html; charset=utf-8
Parse Metadata: CharEncodingForConversion=utf-8 caching.forbidden=content
OriginalCharEncoding=utf-8 language=nl
{code}
I am testing on more and more sites and will report back, but so far so good.
> Delegate language identification to Tika
> ----------------------------------------
>
> Key: NUTCH-1075
> URL: https://issues.apache.org/jira/browse/NUTCH-1075
> Project: Nutch
> Issue Type: Improvement
> Components: parser
> Affects Versions: 1.4
> Reporter: Julien Nioche
> Assignee: Julien Nioche
> Fix For: 1.4
>
> Attachments: NUTCH-1075.patch
>
>
> In 2.0 the language identification is delegated to Tika and is done as part
> of the parsing step (and not during the indexing as done currently).
> The patch attached is a backport from trunk which implements this and adds a
> new parameter to determine the strategy to use
> {code:xml}
> <property>
> <name>lang.extraction.policy</name>
> <value>detect,identify</value>
> <description>This determines when the plugin uses detection and
> statistical identification mechanisms. The order in which the
> detect and identify are written will determine the extraction
> policy. Default case (detect,identify) means the plugin will
> first try to extract language info from page headers and metadata,
> if this is not successful it will try using tika language
> identification. Possible values are:
> detect
> identify
> detect,identify
> identify,detect
> </description>
> </property>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira