List Info

Thread: nutch plugin-analyser language identifier




nutch plugin-analyser language identifier
user name
2007-08-13 02:59:36
hai all,

i am working on nutch plugin to plug an language analyzer
for tamil
(analysis-ta) and i have done the steps for writing plugin
nutch and from
the forum i got info that i have to create the ngram profile
for tamil
language .......
where i have to execute NGramProfile class to create some
NGrmProfiles (ngp
files)

a) place where the NGrameProfile class file is located   or
b) inside the nutch directory or
c) place where NGramProfile.java is located

where i have to do this ???


very urgent

with regards
saran
Re: nutch plugin-analyser language identifier
country flaguser name
United States
2007-08-17 17:10:17
Hey Saravana,

The new NGP file shoud be kept in the place where
NGramProfile.java is 
placed i.e where all other ngp files are present.
The ant script will then copy all the .class , ngp files, 
langmappings.properties file in the language-identifier.jar


- Sagar Naik

saravana krishna.r wrote:
> hai all,
>
> i am working on nutch plugin to plug an language
analyzer for tamil
> (analysis-ta) and i have done the steps for writing
plugin nutch and from
> the forum i got info that i have to create the ngram
profile for tamil
> language .......
> where i have to execute NGramProfile class to create
some NGrmProfiles (ngp
> files)
>
> a) place where the NGrameProfile class file is located 
 or
> b) inside the nutch directory or
> c) place where NGramProfile.java is located
>
> where i have to do this ???
>
>
> very urgent
>
> with regards
> saran
>
>   


-- 
Always vizz it us  visvo.com


-- 
This message has been scanned for viruses and
dangerous content and is believed to be clean.


Re: nutch plugin-analyser language identifier
user name
2007-08-18 00:40:52
dear sagar,


                thank you for your kind information and it
really
helped us.I need to

know   how to create a new ngp file for tamil.Please send me
the
details as soon

as possible.

 i try to set the classpath for ngp file for tamil.But i
have the
following errors

as  and i run this command in
...../nutch0.9      the nutch directory for creating new ngp
file

java -classpath build/language-identifier/language-
identifier.jar:build/language-identifier/classes/org/apache/
nutch/analysis/lang/NGramProfile
-create ta
sample.ta.utf8.txt UTF8 and i  got the error as follows

Exception in thread "main"
java.lang.NoClassDefFoundError: loaded class
NGramProfile was in fact named
org.apache.nutch.analysis.lang.NGramProfile
  at java.lang.VMClassLoader.defineClass(libgcj.so.7)
  at java.lang.ClassLoader.defineClass(libgcj.so.7)
  at
java.security.SecureClassLoader.defineClass(libgcj.so.7)
  at java.net.URLClassLoader.findClass (libgcj.so.7)
  at java.lang.ClassLoader.loadClass(libgcj.so.7)
  at java.lang.ClassLoader.loadClass(libgcj.so.7)
  at java.lang.Class.forName(libgcj.so.7)
  at gnu.java.lang.MainThread.run(libgcj.so.7)


and i am not able to figure out that can u please help me
.....

Re: nutch plugin-analyser language identifier
user name
2007-08-20 08:55:10
The best way is to use the following command:
nutch plugin language-identifier
org.apache.nutch.analysis.lang.NGramProfile-create ta
sample_ta.txt
UTF8

Best regards

Jérôme


On 8/18/07, k.g.krishnae san <krishnaesankggmail.com> wrote:
>
> dear sagar,
>
>
>                 thank you for your kind information and
it really
> helped us.I need to
>
> know   how to create a new ngp file for tamil.Please
send me the
> details as soon
>
> as possible.
>
> i try to set the classpath for ngp file for tamil.But i
have the
> following errors
>
> as  and i run this command in
> ...../nutch0.9      the nutch directory for creating
new ngp file
>
> java -classpath build/language-identifier/language-
>
>
identifier.jar:build/language-identifier/classes/org/apache/
nutch/analysis/lang/NGramProfile
> -create ta
> sample.ta.utf8.txt UTF8 and i  got the error as
follows
>
> Exception in thread "main"
java.lang.NoClassDefFoundError: loaded class
> NGramProfile was in fact named
org.apache.nutch.analysis.lang.NGramProfile
>   at java.lang.VMClassLoader.defineClass(libgcj.so.7)
>   at java.lang.ClassLoader.defineClass(libgcj.so.7)
>   at
java.security.SecureClassLoader.defineClass(libgcj.so.7)
>   at java.net.URLClassLoader.findClass (libgcj.so.7)
>   at java.lang.ClassLoader.loadClass(libgcj.so.7)
>   at java.lang.ClassLoader.loadClass(libgcj.so.7)
>   at java.lang.Class.forName(libgcj.so.7)
>   at gnu.java.lang.MainThread.run(libgcj.so.7)
>
>
> and i am not able to figure out that can u please help
me .....
>



-- 
Jérôme Charron
Directeur Technique  WebPulse
Tel: +33673716743 - jerome.charronshopreflex.com
http://blog.shopreflex.co
m/
Tous les goûts sont dans la nature, les vôtres sont sur
http://www.shopreflex.com
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )