Quotations Extraction

AlchemyAPI provides advanced quotations extraction integrated into all named entity extraction API calls, enabling the identification of utterances ("quotations") within unstructured text.

What is Quotations Extraction?

Quotations extraction identifies utterances (such as: Bob said "this is a quotation") from unstructured text:

How Do I Enable Quotations Extraction?

To enable AlchemyAPI quotations extraction, add the following HTTP parameter to your entity extraction API calls:

    quotations=1

NOTE: Quotations extraction is currently available for English-language content only. Support for other languages is currently in development.

What Do Extracted Quotations Look Like?

Whenever a quotation is extracted for a named entity, a quotations metadata block is included in API responses.

The following is an example XML-formatted response containing quotations metadata (for ".."):

<entity>
   <type>Person</type>
   <relevance>0.402741</relevance>
   <count>1</count>
   <text>Jake Widman</text>
   <quotations>
      <quotation>
         "It's guaranteed that almost everything we see on a computer will show up on a smartphone -- and some new things," said Jake Widman, ...
      </quotation>
   </quotations>
</entity>

NOTE: Quotations extraction is supported within all AlchemyAPI response formats, including XML, JSON, and RDF.