Hi,
 
I am using a summarizer COM object in a taf to bring back the key concepts of a text string.  The output is in xml.  How do I parse out the key concepts and put them into an array?
Here is what a sample of the xml output looks like (I bolded the key concept words):
 
<?xml version="1.0" encoding="UCS-2" standalone="no"?> <Copernic:Summary xmlns:Copernic="http://www.copernic.com/" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="http://www.copernic.com/ Schema.xsd"> <Copernic:Header> <Copernic:Title></Copernic:Title> <Copernic:GUID>49d353c8-f61b-4ff4-9788-f2b77f05b703</Copernic:GUID> <Copernic:Date>2005-03-22</Copernic:Date> <Copernic:Time>12:18:36</Copernic:Time> </Copernic:Header> <Copernic:Body> <Copernic:KeyConcepts Count="11"> <Copernic:Concept Rank="1" Score="0.980392">cookies</Copernic:Concept> <Copernic:Concept Rank="2" Score="0.960513">overload</Copernic:Concept> <Copernic:Concept Rank="3" Score="0.938538">protect</Copernic:Concept> <Copernic:Concept Rank="4" Score="0.913971">knowing</Copernic:Concept> <Copernic:Concept Rank="5" Score="0.88612">surf</Copernic:Concept> <Copernic:Concept Rank="6" Score="0.853969">web applications</Copernic:Concept> <Copernic:Concept Rank="7" Score="0.815941">turns cookies</Copernic:Concept> <Copernic:Concept Rank="8" Score="0.7694">illusion</Copernic:Concept> <Copernic:Concept Rank="9" Score="0.709397">cookies work</Copernic:Concept> <Copernic:Concept Rank="10" Score="0.624828">choir</Copernic:Concept> <Copernic:Concept Rank="11" Score="0.480257">preaching</Copernic:Concept> </Copernic:KeyConcepts> <Copernic:KeySentences Count="3"> <Copernic:Sentence Rank="1">Other means of creating the illusion of state have issues.</Copernic:Sentence> <Copernic:Sentence Rank="2">If someone turns cookies off, then they are entitled to not get the benefit of web applications &amp; just surf pages.</Copernic:Sentence> <Copernic:Sentence Rank="3">2. not trying to track the person, just to have a way of knowing that his cookies are completely off.</Copernic:Sentence> </Copernic:KeySentences> </Copernic:Body> </Copernic:Summary>
 
The number of key concepts can vary.
 
 
Thanks.

Ted Wolfley
Database/Internet Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043
[EMAIL PROTECTED]

www.ogdengroup.com

 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to