InformationExtractor
InformationExtractor は、構造化されていないデータの文字列 (プレーン テキスト) から、名前や住所などのエンティティを抽出します。
入力のタイプによって精度が異なるため、選択されたタイプに対して一部のエンティティは返されない可能性があります。Information Extractor は自然言語処理を使用するため、ニュース記事やブログからの文法的に正しい文を含む文字列は、名前や日付の単純なリストよりも、高い精度で名前が返される可能性があります。
リソース URL
http://server:port/soap/InformationExtractor
例
以下は、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>
応答は次のようになります。
<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>