Download LDA Report PDF - VTechWorks

Transcript
3. modify crawl script of Nutch ( with the help from noise reduce team). There are two files
needed to be modified. One is the file bin/crawl, and another is conf/nutch-site.xml.
if false
then
#'note'that'the'link'inversion'Q'indexing'routine'can'be'done'within't
he'main'loop #'on'a'per'segment'basis
……
''if'['$?'Qne'0'] '''then'exit'$? ''fi
fi
done
Adding the comments highlighted in red.
<property>
<name>http.agent.name</name>
<value>cs5604s15_lda</value>
<description>HTTP 'User-Agent' request header. MUST NOT be
empty please set this to a single word uniquely related to your
organization.
</description>
</property>
<property>
<name>http.robots.agents</name>
<value>cs5604s15_lda</value>
<description>HTTP 'User-Agent' request header. MUST NOT be
empty please set this to a single word uniquely related to your
organization.
</description>
</property>
4. Execute Nutch by using command :
bin/crawl ../urls/ output/ http://
preston.dlib.vt.edu:8980/solr/1 1 and the webpages can be found in directory: ../
output/segments/20150411200422/content/part-00000
69