Commit a4cb59d9 authored by Achyudh Ram's avatar Achyudh Ram

Add Reuters dataset

parent e2bcaba0
# Reuters-21578
A pre-processor to convert the Reuters-21578 dataset to TSV from SGM format according to the ApteMod test/train splits. This method returns the documents that belong to at least one of the categories that have at least one document in both the training and the test sets. The dataset has 90 categories with a training set of 7769 documents and a test set of 3019 documents.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
topic_num_map = {'acq': 0, 'alum': 1, 'barley': 2, 'bop': 3, 'carcass': 4, 'castor-oil': 5, 'cocoa': 6, 'coconut': 7,
'coconut-oil': 8, 'coffee': 9, 'copper': 10, 'copra-cake': 11, 'corn': 12, 'cotton': 13,
'cotton-oil': 14, 'cpi': 15, 'cpu': 16, 'crude': 17, 'dfl': 18, 'dlr': 19, 'dmk': 20, 'earn': 21,
'fuel': 22, 'gas': 23, 'gnp': 24, 'gold': 25, 'grain': 26, 'groundnut': 27, 'groundnut-oil': 28,
'heat': 29, 'hog': 30, 'housing': 31, 'income': 32, 'instal-debt': 33, 'interest': 34, 'ipi': 35,
'iron-steel': 36, 'jet': 37, 'jobs': 38, 'l-cattle': 39, 'lead': 40, 'lei': 41, 'lin-oil': 42,
'livestock': 43, 'lumber': 44, 'meal-feed': 45, 'money-fx': 46, 'money-supply': 47, 'naphtha': 48,
'nat-gas': 49, 'nickel': 50, 'nkr': 51, 'nzdlr': 52, 'oat': 53, 'oilseed': 54, 'orange': 55,
'palladium': 56, 'palm-oil': 57, 'palmkernel': 58, 'pet-chem': 59, 'platinum': 60, 'potato': 61,
'propane': 62, 'rand': 63, 'rape-oil': 64, 'rapeseed': 65, 'reserves': 66, 'retail': 67, 'rice': 68,
'rubber': 69, 'rye': 70, 'ship': 71, 'silver': 72, 'sorghum': 73, 'soy-meal': 74, 'soy-oil': 75,
'soybean': 76, 'strategic-metal': 77, 'sugar': 78, 'sun-meal': 79, 'sun-oil': 80, 'sunseed': 81,
'tea': 82, 'tin': 83, 'trade': 84, 'veg-oil': 85, 'wheat': 86, 'wpi': 87, 'yen': 88, 'zinc': 89}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment