Class: EntitySentimentFilterBuilder

EntitySentimentFilterBuilder()

We extract entities such as Persons, Organizations and Locations from all the English news and blog posts we crawl. We detect the sentiment attached to Persons and Organizations (not Locations) from the top news outlets.

Constructor

new EntitySentimentFilterBuilder()

Creates internal { @link EntityFilter } object
Source:

Methods

build() → {EntityFilter}

Source:
Returns:
Type
EntityFilter

location(l) → {this}

Filter by location name Important: Don't confuse this with the country filter. If you want to search for sites from a specific country, use the thread.country parameter (explained above). location:"germany"
Parameters:
Name Type Description
l Sentiment
Source:
Returns:
Type
this

organization(o) → {this}

Filter by organization/company name. You should use this filter only for disambiguation, otherwise you should use a simple keyword search. organization:"apple"
Parameters:
Name Type Description
o Sentiment
Source:
Returns:
Type
this

person(p) → {this}

Filter by person name. You should use this filter only for disambiguation, otherwise you should use a simple keyword search. person:"barack obama"
Parameters:
Name Type Description
p Sentiment
Source:
Returns:
Type
this