InformationExtractor

InformationExtractor extrahiert Entitäten wie Namen und Adressen aus Zeichenfolgen mit unstrukturierten Daten (auch Klartext oder Nur-Text).

Möglicherweise werden nicht alle Entitäten eines ausgewählten Typs zurückgegeben, da die Genauigkeit je nach Eingabetyp variiert. Da Information Extractor natürlichsprachige Verarbeitung verwendet, werden bei einer Zeichenfolge mit einem grammatikalisch korrekten Satz aus einem Nachrichtenartikel oder einem Blog wahrscheinlich mehr Namen korrekt zurückgegeben, als wenn nur eine einfach Liste mit Namen und Daten vorliegt.

Ressourcen-URL

http://server:port/soap/InformationExtractor

Beispiel

Im Folgenden wird eine SOAP-Anforderung dargestellt:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inf="http://www.pb.com/spectrum/services/InformationExtractor">
   <soapenv:Header/>
   <soapenv:Body>
      <inf:InformationExtractorRequest>
         <inf:options>
            <inf:EntityList>Person</inf:EntityList>
         </inf:options>
         <inf:input_port>
            <inf:PlainText>
               <inf:PlainText>My name is Arthur Pitney</inf:PlainText>
            </inf:PlainText>
            <inf:PlainText>
               <inf:PlainText>My name is Walter Bowes</inf:PlainText>
            </inf:PlainText>
         </inf:input_port>
      </inf:InformationExtractorRequest>
   </soapenv:Body>
</soapenv:Envelope>

Dies wäre die Antwort:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns3:InformationExtractorResponse xmlns:ns2="http://spectrum.pb.com/"​xmlns:ns3="http://www.pb.com/spectrum/services/InformationExtractor">
         <ns3:output_port>
            <ns3:Result>
               <ns3:Entity>
                  <ns3:Entity>
                     <ns3:Text>Arthur Pitney</ns3:Text>
                     <ns3:Type>Person</ns3:Type>
                  </ns3:Entity>
               </ns3:Entity>
               <ns3:user_fields/>
            </ns3:Result>
            <ns3:Result>
               <ns3:Entity>
                  <ns3:Entity>
                     <ns3:Text>Walter Bowes</ns3:Text>
                     <ns3:Type>Person</ns3:Type>
                  </ns3:Entity>
               </ns3:Entity>
               <ns3:user_fields/>
            </ns3:Result>
         </ns3:output_port>
      </ns3:InformationExtractorResponse>
   </soap:Body>
</soap:Envelope>