ABB.Swum.UnigramTagger.TagPrepostions C# (CSharp) Метод

TagPrepostions() публичный Метод

Tags any word nodes in the given phrase that are prepositions.
public TagPrepostions ( PhraseNode phrase ) : void
phrase ABB.Swum.Nodes.PhraseNode The phrase to tag.
Результат void
        public void TagPrepostions(PhraseNode phrase)
        {
            if (phrase == null) { return; }

            foreach (var word in phrase.GetPhrase())
            {
                if (pos.IsPreposition(word.Text))
                {
                    word.Tag = PartOfSpeechTag.Preposition;
                }
            }
        }