Information Extractor - web_services - 23 - 23.1

Spectrum-Webdienste-Handbuch

Product type
Software
Portfolio
Integrate
Product family
Spectrum™ software
Product
Spectrum™ software > Web Services
Version
23.1
ft:locale
de-DE
Product name
Spectrum Technology Platform
ft:title
Spectrum-Webdienste-Handbuch
First publish date
2007
ft:lastEdition
2023-10-25
ft:lastPublication
2023-10-25T07:20:03.279000

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

JSON-Endpunkt:

http://server:port/rest/InformationExtractor/result.json

XML-Endpunkt:

http://server:port/rest/InformationExtractor/result.xml
http://server:port/soap/InformationExtractor

Beispiel mit JSON-Antwort

Im folgenden Beispiel wird eine JSON-Antwort angefordert:

http://myserver:8080/rest/InformationExtractor/result.json?​Data.PlainText=My+name+is+Arthur+Pitney&​Option.EntityList=Person

Die von dieser Anforderung zurückgegebene JSON-Antwort würde wie folgt lauten:

{"output_port": [{    "Entity": [   {    "Text": "Aurthur Pitney",    "Type": "Person"    }],    "user_fields": [] }]}

Beispiel mit XML-Antwort

Im folgenden Beispiel wird eine XML-Antwort angefordert:

http://myserver:8080/rest/InformationExtractor/result.xml?​Data.PlainText=My+name+is+Arthur+Pitney&​Option.EntityList=Person

Die von dieser Anforderung zurückgegebene XML-Antwort würde wie folgt lauten:

<xml.InformationExtractorResponse xmlns="http://www.precisely.com/spectrum/services/InformationExtractor">    <output_port>       <Result>          <Entity>             <Entity>                <Text>Aurthur Pitney</Text>                <Type>Person</Type>             </Entity>          </Entity>          <user_fields/>       </Result>    </output_port> </xml.InformationExtractorResponse>

Beispiel

Im Folgenden wird eine SOAP-Anforderung dargestellt:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inf="http://www.precisely.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.precisely.com/"​xmlns:ns3="http://www.precisely.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>