-
Notifications
You must be signed in to change notification settings - Fork 0
/
Constants.h
87 lines (85 loc) · 7.89 KB
/
Constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//
// Created by Waner Miranda on 10/24/15.
//
#include <string>
#include <vector>
#include <set>
#ifndef RECSYS_2_CONSTANTS_H
#define RECSYS_2_CONSTANTS_H
#define FLOAT_NONE_VALUE 0
#define VOTE_MAX_VALUE 10.0f
#define N_TERMS 10
#define MINIMUM_FREQUENCY 20
#define MULTIPLICATION_FACTOR 2.25
#define INVALID_CHARS "\\/0123456789[]{}-\'.:;()[]"
//#define DEBUG
const std::string NONE_STR = "n/a";
const std::string EMPTY_STR = "";
const std::set<std::string>STOP_WORDS =
{"a", "able", "about", "above", "abst", "accordance", "according", "accordingly", "across", "act",
"actually", "added", "adj", "affected", "affecting", "affects", "after", "afterwards", "again",
"against", "ah", "all", "almost", "alone", "along", "already", "also", "although", "always", "am",
"among", "amongst", "an", "and", "announce", "another", "any", "anybody", "anyhow", "anymore",
"anyone", "anything", "anyway", "anyways", "anywhere", "apparently", "approximately", "are",
"aren", "arent", "arise", "around", "as", "aside", "ask", "asking", "at", "auth", "available",
"away", "awfully", "b", "back", "be", "became", "because", "become", "becomes", "becoming",
"been", "before", "beforehand", "begin", "beginning", "beginnings", "begins", "behind", "being",
"believe", "below", "beside", "besides", "between", "beyond", "biol", "both", "brief", "briefly",
"but", "by", "c", "ca", "came", "can", "cannot", "cant", "cause", "causes", "certain",
"certainly", "co", "com", "come", "comes", "contain", "containing", "contains", "could",
"couldnt", "d", "date", "did", "didnt", "different", "do", "does", "doesnt", "doing", "done",
"dont", "down", "downwards", "due", "during", "e", "each", "ed", "edu", "effect", "eg", "eight",
"eighty", "either", "else", "elsewhere", "end", "ending", "enough", "especially", "et", "et-al",
"etc", "even", "ever", "every", "everybody", "everyone", "everything", "everywhere", "ex",
"except", "f", "far", "few", "ff", "fifth", "first", "five", "fix", "followed", "following",
"follows", "for", "former", "formerly", "forth", "found", "four", "from", "further",
"furthermore", "g", "gave", "get", "gets", "getting", "give", "given", "gives", "giving", "go",
"goes", "gone", "got", "gotten", "h", "had", "happens", "hardly", "has", "hasnt", "have",
"havent", "having", "he", "hed", "hence", "her", "here", "hereafter", "hereby", "herein", "heres",
"hereupon", "hers", "herself", "hes", "hi", "hid", "him", "himself", "his", "hither", "home",
"how", "howbeit", "however", "hundred", "i", "id", "ie", "if", "ill", "im", "immediate",
"immediately", "importance", "important", "in", "inc", "indeed", "index", "information",
"instead", "into", "invention", "inward", "is", "isnt", "it", "itd", "itll", "its", "itself",
"ive", "j", "just", "k", "keep keeps", "kept", "kg", "km", "know", "known", "knows", "l",
"largely", "last", "lately", "later", "latter", "latterly", "least", "less", "lest", "let",
"lets", "like", "liked", "likely", "line", "little", "ll", "look", "looking", "looks", "ltd", "m",
"made", "mainly", "make", "makes", "many", "may", "maybe", "me", "mean", "means", "meantime",
"meanwhile", "merely", "mg", "might", "million", "miss", "ml", "more", "moreover", "most",
"mostly", "mr", "mrs", "much", "mug", "must", "my", "myself", "n", "na", "name", "namely", "nay",
"nd", "near", "nearly", "necessarily", "necessary", "need", "needs", "neither", "never",
"nevertheless", "new", "next", "nine", "ninety", "no", "nobody", "non", "none", "nonetheless",
"noone", "nor", "normally", "nos", "not", "noted", "nothing", "now", "nowhere", "o", "obtain",
"obtained", "obviously", "of", "off", "often", "oh", "ok", "okay", "old", "omitted", "on", "once",
"one", "ones", "only", "onto", "or", "ord", "other", "others", "otherwise", "ought", "our",
"ours", "ourselves", "out", "outside", "over", "overall", "owing", "own", "p", "page", "pages",
"part", "particular", "particularly", "past", "per", "perhaps", "placed", "please", "plus",
"poorly", "possible", "possibly", "potentially", "pp", "predominantly", "present", "previously",
"primarily", "probably", "promptly", "proud", "provides", "put", "q", "que", "quickly", "quite",
"qv", "r", "ran", "rather", "rd", "re", "readily", "really", "recent", "recently", "ref", "refs",
"regarding", "regardless", "regards", "related", "relatively", "research", "respectively",
"resulted", "resulting", "results", "right", "run", "s", "said", "same", "saw", "say", "saying",
"says", "sec", "section", "see", "seeing", "seem", "seemed", "seeming", "seems", "seen", "self",
"selves", "sent", "seven", "several", "shall", "she", "shed", "shell", "shes", "should",
"shouldnt", "show", "showed", "shown", "showns", "shows", "significant", "significantly",
"similar", "similarly", "since", "six", "slightly", "so", "some", "somebody", "somehow",
"someone", "somethan", "something", "sometime", "sometimes", "somewhat", "somewhere", "soon",
"sorry", "specifically", "specified", "specify", "specifying", "still", "stop", "strongly", "sub",
"substantially", "successfully", "such", "sufficiently", "suggest", "sup", "sure t", "take",
"taken", "taking", "tell", "tends", "th", "than", "thank", "thanks", "thanx", "that", "thatll",
"thats", "thatve", "the", "their", "theirs", "them", "themselves", "then", "thence", "there",
"thereafter", "thereby", "thered", "therefore", "therein", "therell", "thereof", "therere",
"theres", "thereto", "thereupon", "thereve", "these", "they", "theyd", "theyll", "theyre",
"theyve", "think", "this", "those", "thou", "though", "thoughh", "thousand", "throug", "through",
"throughout", "thru", "thus", "til", "tip", "to", "together", "too", "took", "toward", "towards",
"tried", "tries", "truly", "try", "trying", "ts", "twice", "two", "u", "un", "under",
"unfortunately", "unless", "unlike", "unlikely", "until", "unto", "up", "upon", "ups", "us",
"use", "used", "useful", "usefully", "usefulness", "uses", "using", "usually", "v", "value",
"various", "ve", "very", "via", "viz", "vol", "vols", "vs", "w", "want", "wants", "was", "wasnt",
"way", "we", "wed", "welcome", "well", "went", "were", "werent", "weve", "what", "whatever",
"whatll", "whats", "when", "whence", "whenever", "where", "whereafter", "whereas", "whereby",
"wherein", "wheres", "whereupon", "wherever", "whether", "which", "while", "whim", "whither",
"who", "whod", "whoever", "whole", "wholl", "whom", "whomever", "whos", "whose", "why", "widely",
"willing", "wish", "with", "within", "without", "wont", "words", "world", "would", "wouldnt",
"www", "x", "y", "yes", "yet", "you", "youd", "youll", "your", "youre", "yours", "yourself",
"yourselves", "youve", "z", "zero"};
#endif