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
 /// <summary>
 /// Initializes the mention finder for this linker.
 /// This can be overridden to change the space of mentions used for coreference.
 /// </summary>
 protected internal virtual void InitializeMentionFinder()
 {
     MentionFinder = ShallowParseMentionFinder.GetInstance(HeadFinder);
 }