Example #1
0
        public TestPhrase()
        {
            var relationship = new TestWordItemRelationship();

            Relationship       = relationship;
            relationship.Owner = this;
            POS      = POSTags.Instance.NN;
            IsSimple = false;
        }
Example #2
0
        public TestWordItem(string text, string stemmed = null)
        {
            var relationship = new TestWordItemRelationship();

            Text = text;
            if (string.IsNullOrEmpty(stemmed))
            {
                relationship.Views = new[] { text };
            }
            else
            {
                relationship.Views = new[] { text, stemmed };
            }

            Relationship       = relationship;
            relationship.Owner = this;
            POS      = POSTags.Instance.NN;
            IsSimple = true;
        }