public Assertion(Notion left, Associator relation, Notion right)
 {
     id            = 0;
     this.left     = left;
     this.relation = relation;
     this.right    = right;
     score         = 1;
     sentence      = relation.Express(left.Canonical, right.Canonical);
 }
 public Assertion(int id, Notion left, Associator relation, Notion right, int score, string sentence)
 {
     this.id       = id;
     this.left     = left;
     this.relation = relation;
     this.right    = right;
     this.score    = score;
     this.sentence = sentence;
 }
Esempio n. 3
0
        public static Associator GetRelation(string name, string question, string format)
        {
            Associator rel;
            if (RelationMap.TryGetValue(name, out rel))
                return rel;

            rel = new Associator(name, question, format);
            RelationMap.Add(name, rel);
            return rel;
        }
Esempio n. 4
0
        public static Associator GetRelation(string name, string question, string format)
        {
            Associator rel;

            if (RelationMap.TryGetValue(name, out rel))
            {
                return(rel);
            }

            rel = new Associator(name, question, format);
            RelationMap.Add(name, rel);
            return(rel);
        }