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