SampleOrthoMatcher.java
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   private static final long serialVersionUID = -1774167249206778293L;
14 
15   @Override
16   public Resource init() throws ResourceInstantiationException {
17       
18       super.setMinimumNicknameLikelihood(0.5)// the default value from the ANNIE/creole.xml
19 
20       super.init();
21       
22       AnnotationOrthography ortho = new SampleAnnotationOrthography(
23           this.getPersonType()
24           this.getExtLists()
25           this.getOrthography());
26       
27       super.setOrthography(ortho);
28       
29       return this;
30   }
31   
32 }