ExternalResourceDescription imsResource = createExternalResourceDescription(ImsWsdDisambiguatorResource.class, ImsWsdDisambiguatorResource.SENSE_INVENTORY_RESOURCE, wordnet21);
However I am having problems with the annotator. As I could guess from the code the annotator should be WSDAnnotatorDocumentDependentBasic.java
However I am getting
Caused by: java.lang.IllegalArgumentException: Can not set de.tudarmstadt.ukp.dkpro.wsd.algorithm.WSDAlgorithmDocumentDependentBasic field de.tudarmstadt.ukp.dkpro.wsd.annotator.WSDAnnotatorDocumentDependentBasic.wsdMethod to de.tudarmstadt.ukp.dkpro.wsd.supervised.ims.resource.ImsWsdDisambiguatorResource
Please can you provide an example of how to create both the ExternalResourceDescription and AnalysisEngineDescription for the IMS?
It would be also nice if you could provide the same for the CentralityDegree algorithm.
Thank you in Advance
Luciano
ExternalResourceDescription wordnet = createExternalResourceDescription(
LsrSenseInventoryResource.class,
LsrSenseInventoryResource.PARAM_RESOURCE_NAME,"wordnet",
LsrSenseInventoryResource.PARAM_RESOURCE_LANGUAGE,"en"
);
ExternalResourceDescription imsResource = createExternalResourceDescription(
ImsWsdDisambiguatorResource.class,
WSDResourceDocumentTextBasic.SENSE_INVENTORY_RESOURCE, wordnet,
WSDResourceDocumentTextBasic.DISAMBIGUATION_METHOD,
ImsWsdDisambiguator.class.getName());
AnalysisEngineDescription imsAnnotator = createEngineDescription(
ImsWSDAnnotator.class,
ImsWSDAnnotator.WSD_ALGORITHM_RESOURCE, imsResource,
WSDAnnotatorBase.PARAM_SET_SENSE_DESCRIPTIONS, false);