InformationExtractor

InformationExtractor extrae entidades tales como los nombres y las direcciones de las cadenas de datos no estructurados (también denominados como texto sin formato).

Es posible que no se devuelvan todas las entidades para un tipo seleccionado, ya que la precisión varía según el tipo de documento de entrada. Dado que Information Extractor utiliza procesamiento de lenguaje natural, una cadena que contiene una oración gramaticalmente correcta de un artículo noticioso o blog tendría una devolución de nombres más precisa que una simple lista de nombres y fechas.

URL del recurso

http://server:port/soap/InformationExtractor

Ejemplo

Esto muestra una solicitud SOAP:

<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>

Esta sería la respuesta:

<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>