Skip to content

Commit

Permalink
new classifiers added to postInstall script for fresh deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
meghnas committed Jun 30, 2015
1 parent f6cb6ea commit 38fb7b3
Showing 1 changed file with 73 additions and 46 deletions.
119 changes: 73 additions & 46 deletions postInstall.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,58 +67,85 @@ VALUES
(2,1,'Information provided','Indicate what type of information is provided in the message. This is a ranked list. If more than one information type is present, choose the one that appears first on the list','information_provided'),
(3,1,'Humanitarian Clusters','These categories are in line with those put forth by the United Nations \"clusters\" approach. If more than one category is equally represented in the message, choose \"multiple\"','un_cluster'),
(4,1,'Urgent needs','Indicate if the item mentions a need of the affected population that is immediate or short-term. If more than one applies, indicate \"multiple\"','needs'),
(5,1,'Information source','Indicate what the is the apparent source of this information. Click on links when necessary to identify the source','information_source');
(5,1,'Information source','Indicate what the is the apparent source of this information. Click on links when necessary to identify the source','information_source'),
(6,1,'Information provided (simple)','What does this tweet refers to?','information_provided_short'),
(7,1,'Actionable Information','Classify messages containing actionable information on these categories.','actionable_information'),
(8,1,'Humanitarian Information','Indicate what information relevant to humanitarian relief is contained on this tweet.','humanitarian_information');


# populate table nominal_label

INSERT INTO `nominal_label` (`nominalLabelCode`, `nominalAttributeID`, `name`, `description`, `sequence`)
VALUES
('informative',1,'Informative','Contains useful information that helps you understand the situation',100),
('not_informative',1,'Not informative','Refers to the crisis, but does not contain useful information that helps you understand the situation',100),
('not_related',1,'Not related to crisis','Not related to this crisis',100),
('null',1,'N/A','Not applicable, cannot judge, not readable, not sure',100),
('casualties',2,'Injured or dead people','Casualties due to the crisis',100),
('missing',2,'Missing, trapped, or found people','Questions and/or reports about missing or found people',100),
('displaced',2,'Displaced people','People who have relocated due to the crisis, even for a short time (includes evacuations)',100),
('infrastructure',2,'Infrastructure and utilities','Buildings or roads damaged or operational; utilities/services interrupted or restored',100),
('supplies',2,'Shelter and supplies','Needs or donations of shelter and/or supplies such as food, water, clothing, medical supplies or blood',100),
('money',2,'Money','Money requested, donated or spent',100),
('services',2,'Volunteer or professional services','Services needed or offered by volunteers or professionals',100),
('animals',2,'Animal management','Pets and animals, living, missing, displaced, or injured/dead',100),
('caution_advice',2,'Caution and advice','Warnings issued or lifted, guidance and tips',100),
('personal',2,'Personal updates','Status updates about individuals or loved ones',100),
('sympathy',2,'Sympathy and emotional support','Thoughts and prayers',100),
('other',2,'Other relevant information','Other useful information that helps understand the situation',100),
('not_related',2,'Not related or irrelevant','Unrelated to the situation or irrelevant',100),
('null',2,'N/A','Not applicable, cannot judge, not readable, not sure',100),
('children',3,'Education/child welfare','Children\'s well being and education',100),
('telecommunications',3,'Telecommunications','Mobile and landline networks, internet',100),
('food',3,'Food/nutrition','Nutritional well being',100),
('health',3,'Health','Mental, physical, emotional well being',100),
('logistics',3,'Logistics/transportation','Delivery and storage of goods and supplies',100),
('shelter',3,'Camp/shelter','Condition and location of shelters and camps',100),
('hygiene',3,'Water, sanitation, hygiene','Availability of clean water, waste and sewage disposal, access to hygienic facilities',100),
('security',3,'Safety/security','Protection of people/property against harm such as violence or theft',100),
('multiple',3,'Multiple','More than one of the above are equally represented on this message',100),
('null',3,'N/A','Not applicable, cannot judge, not readable, not sure',100),
('money',4,'Money needed','Donations or transfers of money are needed/requested',100),
('food_water',4,'Food and/or water needed','Food and/or water are needed',100),
('clothing',4,'Clothing needed','Clothing, shoes and/or blankets are needed',100),
('shelter',4,'Shelter needed','Shelter space/beds are needed',100),
('medical',4,'Blood or other medical supplies needed','Blood donors or other medical supplies are needed',100),
('service',4,'Services are needed','Volunteer or professional services are needed',100),
('other',4,'Other type of need','Other type of help, supplies, equipment or machines are needed',100),
('multiple',4,'Multiple','More than one of the above is mentioned',100),
('not_need',4,'Not need-related','Not related to a need',100),
('null',4,'N/A','Not applicable, cannot judge, not readable, not sure',100),
('eyewitness',5,'Eye witness','Describes an eyewitness account',100),
('government',5,'Government','National, regional or local government agencies, police, and/or military',100),
('ngo',5,'Non-government','Non-governmental organizations',100),
('business',5,'Business','For-profit business or corporations',100),
('traditional_media',5,'Traditional media','Mentions traditional media: television, radio, or newspaper',100),
('internet_only_media',5,'Internet-only media','Mentions websites, blogs or other sites not associated with television, radio or newspapers',100),
('null',5,'N/A','Not applicable, cannot judge, not readable, not sure',100);
('informative',1,'Informative','Contains useful information that helps you understand the situation',101),
('not_informative',1,'Not informative','Refers to the crisis, but does not contain useful information that helps you understand the situation',102),
('not_related',1,'Not related to crisis','Not related to this crisis',103),
('null',1,'Cannot judge','Not readable or not sure how to classify',999),
('casualties',2,'Injured or dead people','Casualties due to the crisis',101),
('missing',2,'Missing, trapped, or found people','Questions and/or reports about missing or found people',102),
('displaced',2,'Displaced people','People who have relocated due to the crisis, even for a short time (includes evacuations)',103),
('infrastructure',2,'Infrastructure and utilities','Buildings or roads damaged or operational; utilities/services interrupted or restored',104),
('supplies',2,'Shelter and supplies','Needs or donations of shelter and/or supplies such as food, water, clothing, medical supplies or blood',105),
('money',2,'Money','Money requested, donated or spent',106),
('services',2,'Volunteer or professional services','Services needed or offered by volunteers or professionals',107),
('animals',2,'Animal management','Pets and animals, living, missing, displaced, or injured/dead',108),
('caution_advice',2,'Caution and advice','Warnings issued or lifted, guidance and tips',109),
('personal',2,'Personal updates','Status updates about individuals or loved ones',110),
('sympathy',2,'Sympathy and emotional support','Thoughts and prayers',111),
('other',2,'Other relevant information','Other useful information that helps understand the situation',112),
('not_related',2,'Not related or irrelevant','Unrelated to the situation or irrelevant',113),
('null',2,'Cannot judge','Not readable or not sure how to classify',999),
('children',3,'Education/child welfare','Children\'s well being and education',101),
('telecommunications',3,'Telecommunications','Mobile and landline networks, internet',102),
('food',3,'Food/nutrition','Nutritional well being',103),
('health',3,'Health','Mental, physical, emotional well being',104),
('logistics',3,'Logistics/transportation','Delivery and storage of goods and supplies',105),
('shelter',3,'Camp/shelter','Condition and location of shelters and camps',106),
('hygiene',3,'Water, sanitation, hygiene','Availability of clean water, waste and sewage disposal, access to hygienic facilities',107),
('security',3,'Safety/security','Protection of people/property against harm such as violence or theft',108),
('multiple',3,'Multiple','More than one of the above are equally represented on this message',109),
('null',3,'Cannot judge','Not readable or not sure how to classify',999),
('money',4,'Money needed','Donations or transfers of money are needed/requested',101),
('shelter',4,'Shelter needed','Shelter space/beds are needed',104),
('food_water',4,'Food and/or water needed','Food and/or water are needed',102),
('clothing',4,'Clothing needed','Clothing, shoes and/or blankets are needed',103),
('medical',4,'Blood or other medical supplies needed','Blood donors or other medical supplies are needed',105),
('service',4,'Services are needed','Volunteer or professional services are needed',106),
('multiple',4,'Multiple','More than one of the above is mentioned',108),
('other',4,'Other type of need','Other type of help, supplies, equipment or machines are needed',107),
('not_need',4,'Not need-related','Not related to a need',109),
('null',4,'Cannot judge','Not readable or not sure how to classify',999),
('eyewitness',5,'Eye witness','Describes an eyewitness account',101),
('government',5,'Government','National, regional or local government agencies, police, and/or military',102),
('ngo',5,'Non-government','Non-governmental organizations',103),
('business',5,'Business','For-profit business or corporations',104),
('traditional_media',5,'Traditional media','Mentions traditional media: television, radio, or newspaper',105),
('internet_only_media',5,'Internet-only media','Mentions websites, blogs or other sites not associated with television, radio or newspapers',106),
('null',5,'Cannot judge','Not readable or not sure how to classify',999),
('casualties',6,'Injured/Dead','Casualties',101),
('damage',6,'Damage','Buildings or roads damaged or operational; utilities/services interrupted or restored',102),
('shelter',6,'Shelter','Needs of shelter, or shelter is available',103),
('food_water',6,'Food/Water','Needs food/water, or able to provide food/water',104),
('other_useful',6,'Useful Information','Other useful information that helps understand the situation',105),
('other',6,'None of the above','Not related, irrelevant, or not sure how to classify',106),
('null',6,'Cannot judge','Not readable or not sure how to classify',999),
('casualties',7,'Injured or dead people','Casualties due to the crisis',101),
('missing',7,'Missing, trapped, or found people','Questions and/or reports about missing or found people',102),
('infrastructure',7,'Infrastructure and utilities','Buildings damaged or operational; utilities/services interrupted or restored',103),
('roads',7,'Roads','Including streets, bridges and highways, damaged, closed, or re-opened',104),
('needs',7,'Shelter or supplies needed','Needs of shelter or supplies such as food, water, clothing, medical supplies or blood',105),
('response',7,'Relief and response efforts','Shelter, supplies, or other services being offered, provided, or received, reports of emergency relief actions',106),
('personal',7,'Personal updates','Status updates about individuals or loved ones',107),
('non_english',7,'Not in English','For translation purposes, use this label even if you are able to read/understand the message',108),
('other',7,'None of the above','Messages not corresponding to the categories above',109),
('null',7,'Cannot judge','Not readable or not sure how to classify',999),
('needs',8,'Needs and requests for help','People needing food, water, medical attention, rescue, or other necessities, except shelter',101),
('shelter',8,'Population displacement','People forced to leave their home, or needing shelter',102),
('infrastructure',8,'Infrastructure and utilities','Buildings damaged or operational; utilities/services interrupted or restored',103),
('response',8,'Relief and response efforts','Humanitarian aid being given, offered, or received, reports of emergency relief actions',104),
('other_useful_hum',8,'Other useful for response','Information that could be useful for emergency response and humanitarian organizations',105),
('not_hum_relevant',8,'Not relevant','Not relevant for emergency response or humanitarian organizations',106),
('null',8,'Cannot judge','Not readable or not sure how to classify',999);


# Update DB character set
Expand Down

0 comments on commit 38fb7b3

Please sign in to comment.