01 package gate.creole.orthomatcher.SampleOrthoMatcher;
02
03 import gate.Resource;
04 import gate.creole.ResourceInstantiationException;
05 import gate.creole.orthomatcher.AnnotationOrthography;
06 import gate.creole.orthomatcher.OrthoMatcher;
07
08 /*
09 * This SampleOrthoMatcher shows you how to create your own Orthomatcher.
10 */
11 public class SampleOrthoMatcher extends OrthoMatcher {
12
13 @Override
14 public Resource init() throws ResourceInstantiationException {
15
16 super.setMinimumNicknameLikelihood(0.5); // the default value from the ANNIE/creole.xml
17
18 super.init();
19
20 AnnotationOrthography ortho = new SampleAnnotationOrthography(
21 this.getPersonType(),
22 this.getExtLists(),
23 this.getOrthography());
24
25 super.setOrthography(ortho);
26
27 return this;
28 }
29
30 }
|