public static ShallowParseMentionFinder GetInstance(IHeadFinder headFinder)
 {
     if (mInstance == null)
     {
         mInstance = new ShallowParseMentionFinder(headFinder);
     }
     else if (mInstance.HeadFinder != headFinder)
     {
         mInstance = new ShallowParseMentionFinder(headFinder);
     }
     return mInstance;
 }
Beispiel #2
0
 public static ShallowParseMentionFinder GetInstance(IHeadFinder headFinder)
 {
     if (mInstance == null)
     {
         mInstance = new ShallowParseMentionFinder(headFinder);
     }
     else if (mInstance.HeadFinder != headFinder)
     {
         mInstance = new ShallowParseMentionFinder(headFinder);
     }
     return(mInstance);
 }