Пример #1
0
        public int retractTriple(string subject, string relation, string value)
        {
            if (!EnglishFactiodStore.IsDbPresent)
            {
                return(0);
            }
            var    templateNode = templateNodeInit;
            string factoidSRV   = GenFormatFactoid(subject, relation, value, templateNode);

            if (IsExcludedSRV(subject, relation, value, factoidSRV, writeToLog, "retractTriple"))
            {
                return(-1);
            }
            return(EnglishFactiodStore.DeleteTopScoring(factoidSRV, templateNode, true));
        }
Пример #2
0
 public int DeleteTopScoring(string myText, XmlNode templateNode, bool mustContainExact)
 {
     return(assertTo.DeleteTopScoring(myText, templateNode, mustContainExact));
 }