1   package eu.fbk.dh.tint.digimorph.annotator;
2   
3   import eu.fbk.dh.tint.digimorph.DigiMorph;
4   
5   /**
6    * Created by giovannimoretti on 10/06/16.
7    */
8   public class DigiMorphModel {
9   
10      private static DigiMorph digiMorph;
11  
12      public static DigiMorph getInstance(String model_path) {
13          if (digiMorph == null) {
14              digiMorph = new DigiMorph(model_path);
15          }
16  
17          return digiMorph;
18      }
19  
20  }