public TaggedWord(string word, string tag, int index) { this.Word = word; this.Tag = tag; this.Index = index; this.Sense = null; }
/// <summary> /// Constructor for string of format "will/MD" /// </summary> public TaggedWord(string stringTaggedWord, int indexInGroup) { if (stringTaggedWord.Contains("/")) { this.Word = stringTaggedWord.Split('/').First(); this.Tag = stringTaggedWord.Split('/').Last(); this.Index = indexInGroup; this.Sense = null; } }