private void ProcessSentCallback(List <word_t> words) { _NerScriber.Run(words); switch (words.Count) { case 0: return; case 1: { var word = words[0]; if (word.nerOutputType != NerOutputType.O) { _Words.Add(word); } } return; } NerPostMerging.Run(words); for (int i = 0, len = words.Count; i < len; i++) { var word = words[i]; if (word.nerOutputType != NerOutputType.O) { _Words.Add(word); } } }
private void ProcessSentCallback_Callback(List <word_t> words) { _NerScriber.Run(words); switch (words.Count) { case 0: return; case 1: { _Words.Clear(); var word = words[0]; if (word.nerOutputType != NerOutputType.O) { _Words.Add(word); } } #region [.callback result.] _ProcessSentCallback(_Words); #endregion return; } NerPostMerging.Run(words); _Words.Clear(); for (int i = 0, len = words.Count; i < len; i++) { var word = words[i]; if (word.nerOutputType != NerOutputType.O) { _Words.Add(word); } } #region [.callback result.] _ProcessSentCallback(_Words); #endregion }