예제 #1
0
 private static Edu.Stanford.Nlp.Tagger.Maxent.ASBCunkDict GetInstance()
 {
     lock (typeof(ASBCunkDict))
     {
         if (ASBCunkDictSingleton == null)
         {
             ASBCunkDictSingleton = new Edu.Stanford.Nlp.Tagger.Maxent.ASBCunkDict();
         }
         return(ASBCunkDictSingleton);
     }
 }
예제 #2
0
 protected internal static string GetTag(string a1, string a2)
 {
     Edu.Stanford.Nlp.Tagger.Maxent.ASBCunkDict dict = Edu.Stanford.Nlp.Tagger.Maxent.ASBCunkDict.GetInstance();
     if (Edu.Stanford.Nlp.Tagger.Maxent.ASBCunkDict.Get(a1) == null)
     {
         return("0");
     }
     if (Edu.Stanford.Nlp.Tagger.Maxent.ASBCunkDict.Get(a1).Contains(a2))
     {
         return("1");
     }
     return("0");
 }