lars-erik / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

Some analyzers still do not work #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dear developers,
I have problem with several Analyzers.

What steps will reproduce the problem?
1.go to plugins->analyzer tools
2.choose org.apache.lucene.analysis.snowball.SnowballAnalyzer
3.press analyze

Other analyzers that do not work for me:
org.apache.lucene.analysis.miscellaneous.PatternAnalyzer
org.apache.lucene.analysis.query.QueryAutoStopWordAnalyzer
org.apache.lucene.analysis.PerFieldAnalyzerWrapper

What is the expected output? What do you see instead?
Couldn't initialize analyzer...

What version of the product are you using? On what operating system?
lukeall-1.0.1.jar build from source using svn version 27
Mac Os snow leopard

Please provide any additional information below.

java.lang.InstantiationException: 
org.apache.lucene.analysis.snowball.SnowballAnalyzer
    at java.lang.Class.newInstance0(Class.java:340)
    at java.lang.Class.newInstance(Class.java:308)
    at org.getopt.luke.plugins.AnalyzerToolPlugin.analyze(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at thinlet.Thinlet.invokeImpl(Unknown Source)
    at thinlet.Thinlet.invoke(Unknown Source)
    at thinlet.Thinlet.handleMouseEvent(Unknown Source)
    at thinlet.Thinlet.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Component.java:4714)
    at java.awt.Container.dispatchEventImpl(Container.java:2143)
    at java.awt.Component.dispatchEvent(Component.java:4544)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
    at java.awt.Container.dispatchEventImpl(Container.java:2129)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4544)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by linas.ba...@gmail.com on 26 Mar 2010 at 9:34

GoogleCodeExporter commented 9 years ago
All these analyzers require additional parameters in their constructors. 
Currently
Luke only supports analyzers that take a single additional String parameter. 
Snowball
analyzers work if you provide this value.

The remaining analyzers on your list are too difficult to configure in a UI, so 
I
don't think they will ever be supported in Luke. 

Original comment by sig...@gmail.com on 31 Mar 2010 at 4:34