1   package eu.fbk.dh.tint.digimorph.annotator;
2   
3   import org.slf4j.Logger;
4   import org.slf4j.LoggerFactory;
5   
6   /**
7    * Created by alessio on 25/05/15.
8    */
9   
10  public class GuessModelInstance {
11  
12      private static GuessModelInstance instance;
13      private GuessModel model;
14      private static final Logger LOGGER = LoggerFactory.getLogger(GuessModelInstance.class);
15  
16      private GuessModelInstance() {
17          LOGGER.info("Loading guess model for lemma");
18          model = new GuessModel();
19      }
20  
21      public static GuessModelInstance getInstance() {
22          if (instance == null) {
23              instance = new GuessModelInstance();
24          }
25  
26          return instance;
27      }
28  
29      public GuessModel getModel() {
30          return model;
31      }
32  }