/// <summary> /// Creates a WordRelation object with the given utterance and TokenToWords. /// </summary> /// <param name="utterance">the Utterance from which to create a Relation.</param> /// <param name="tokenToWords">The TokenToWords object to use.</param> /// <returns>a WordRelation object</returns> public static WordRelation createWordRelation(Utterance utterance, UsEnglishWordExpander tokenToWords) { Relation relation = utterance.createRelation(Relation.WORD); return(new WordRelation(relation, tokenToWords)); }
private WordRelation(Relation parentRelation, UsEnglishWordExpander tokenToWords) { relation = parentRelation; this.tokenToWords = tokenToWords; }