searchBareSentiments

This method performs a simple search of sentiments composed of a sentiment word only. Unlike searchSentiment and searchObjectSentiment this method does not use the ontology. Please, refer to "Sentiment Parts" for details.

Input parameters

Tag Description
apiKey Your API key
text The text for processing. It can be a plan text or html. OpenDover removes html tags from the text before processing.

Output

Tag Description
bareSentiments The tag represents a sentiment found by OpenDover in the input text.  It may appear several times in the output, one time per the found sentiment. The tag contains nested tags.
bareSentiments/ sentimentForce The value means the force of the sentiment. It is an integer number in range between -9 and +9. Negative value between -1 and -9 means negative sentiment. Positive number between +1 and +9 means positive sentiment.
bareSentiments/ sentimentType A valid sentiment type value is one of the following: JUDGEMENT, APPRECIATION, EMOTIONAL_STATE.
bareSentiments/ sentimentWord The content of this tag represents a piece of the input text which is recognized as a sentiment word by OpenDover. The tag contains nested tags length, offset and cleanText which refer to the input text (see Input Text Reference for details).

Request Sample

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:stub="stubs.api.opendover.byelex.nl">
   <soapenv:Header/>
   <soapenv:Body>
      <stub:searchBareSentiments>
         <apiKey>abcdefg0123456789abcdefg</apiKey>
         <text>Nevertheless, the GadgetY's lens is perfect. 
         The colours and exposure are very good too.</text>
      </stub:searchBareSentiments>
   </soapenv:Body>
</soapenv:Envelope>

Response Sample

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:searchBareSentimentsResponse xmlns:ns2="stubs.api.opendover.byelex.nl">
         <return>
            <bareSentiments>
               <sentimentForce>8</sentimentForce>
               <sentimentType>APPRECIATION</sentimentType>
               <sentimentWord>
                  <cleanText>perfect</cleanText>
                  <length>7</length>
                  <offset>36</offset>
               </sentimentWord>
            </bareSentiments>
            <bareSentiments>
               <sentimentForce>4</sentimentForce>
               <sentimentType>APPRECIATION</sentimentType>
               <sentimentWord>
                  <cleanText>very good</cleanText>
                  <length>9</length>
                  <offset>84</offset>
               </sentimentWord>
            </bareSentiments>
         </return>
      </ns2:searchBareSentimentsResponse>
   </S:Body>
</S:Envelope>