codeaudit / dkpro-core-asl

Automatically exported from code.google.com/p/dkpro-core-asl
0 stars 0 forks source link

ResourceFactory returns a null instance #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to use similarity measures based on WordNet and Wiktionary.
I have followed the instructions under "Lexical Semantic Resources for Word 
Aggregation Measures" on the page 
https://code.google.com/p/dkpro-similarity-asl/wiki/SettingUpTheResources.
I have verified that the $DKPRO_HOME is set correctly and three files are 
downloaded and stored as explained in the page.

In my sample java program, (file attached) I imported 
import de.tudarmstadt.ukp.dkpro.lexsemresource.core.ResourceFactory;

and instantiated ResourceFactory with both constructers
ResourceFactory rf = ResourceFactory.getInstance(); 
        ResourceFactory rf = new ResourceFactory("/home/priya/dkpro/de.tudarmstadt.ukp.dkpro.lexsemresource.core.ResourceFactory/resources.xml");

Both the methods dont throw any error during instantiation. But when we access 
the methods, we the error 
org.springframework.beans.factory.BeanDefinitionStoreException

However we are able to access the variables ENV_DKPRO_HOME and CONFIG_FILE
of the ResourceFactory class.

What steps will reproduce the problem?
1.Inside main() instantiate ResourceFactory
2. returned instance throws 
org.springframework.beans.factory.BeanDefinitionStoreException
on calling methods get("wiktionary", "en") and getAll();
3. No error on accessing  the variables ENV_DKPRO_HOME and CONFIG_FILE

What is the expected output? What do you see instead?
The expected output is valid instance which is bound to the specified resource.

What version of the product are you using? On what operating system?
dkpro core = Version 2
Configured Maven for full access to the UKP Maven Repository
OS = Ubuntu 12.04 LTS

Please provide any additional information below.
Please find attached the java source.
Is there anything missing in my setup?

Original issue reported on code.google.com by priyarad...@gmail.com on 28 Mar 2013 at 1:50

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue. However, this issue is related to DKPro 
Similarity. Could you please report the issue there in the tracker: 
https://code.google.com/p/dkpro-similarity-asl/issues/list

There is no DKPro Core version 2. The latest DKPro Core version is 1.4.0. 

When you report the issue again, please provide a stack trace for the exception.

Original comment by richard.eckart on 28 Mar 2013 at 3:21

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue. However, this issue is related to DKPro 
Similarity. Could you please report the issue there in the tracker: 
https://code.google.com/p/dkpro-similarity-asl/issues/list

There is no DKPro Core version 2. The latest DKPro Core version is 1.4.0. 

When you report the issue again, please provide a stack trace for the exception.

Original comment by richard.eckart on 28 Mar 2013 at 3:21