crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
Sentiment.hpp File Reference
#include <algorithm>
#include <array>
#include <cctype>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <iterator>
#include <limits>
#include <numeric>
#include <stdexcept>
#include <string>
#include <string_view>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
Include dependency graph for Sentiment.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  crawlservpp::Data::SentimentScores
 Structure for VADER sentiment scores. More...
 
class  crawlservpp::Data::Sentiment
 Implementation of the VADER sentiment analysis algorithm. More...
 

Namespaces

 crawlservpp::Data
 Namespace for different types of data.
 

Constants

constexpr auto crawlservpp::Data::VaderZero {0}
 Zero. More...
 
constexpr auto crawlservpp::Data::VaderOne {1}
 One. More...
 
constexpr auto crawlservpp::Data::VaderTwo {2}
 Two. More...
 
constexpr auto crawlservpp::Data::VaderThree {3}
 Three. More...
 
constexpr auto crawlservpp::Data::VaderFour {4}
 Four. More...
 
constexpr auto crawlservpp::Data::VaderFOne {1.F}
 Factor of One. More...
 
constexpr auto crawlservpp::Data::VaderDampOne {0.95F}
 Factor by which the scalar modifier of immediately preceding tokens is dampened. More...
 
constexpr auto crawlservpp::Data::VaderDampTwo {0.9F}
 Factor by which the scalar modifier of previously preceding tokens is dampened. More...
 
constexpr auto crawlservpp::Data::VaderButFactorBefore {0.5F}
 Factor by which the modifier is dampened before a "but". More...
 
constexpr auto crawlservpp::Data::VaderButFactorAfter {1.5F}
 Factor by which the modifier is heightened after a "but". More...
 
constexpr auto crawlservpp::Data::VaderNeverFactor {1.25F}
 Factor by which the modifier is heightened after a "never". More...
 
constexpr auto crawlservpp::Data::VaderB_INCR {0.293F}
 Empirically derived mean sentiment intensity rating increase for booster tokens. More...
 
constexpr auto crawlservpp::Data::VaderB_DECR {-0.293F}
 Empirically derived mean sentiment intensity rating decrease for negative booster tokens. More...
 
constexpr auto crawlservpp::Data::VaderC_INCR {0.733F}
 Empirically derived mean sentiment intensity rating increase for using ALLCAPs to emphasize a token. More...
 
constexpr auto crawlservpp::Data::VaderN_SCALAR {-0.74F}
 Negation factor. More...