num_to_classes = { 0: 'acc-phys', 1: 'adap-org', 2: 'alg-geom', 3: 'ao-sci', 4: 'astro-ph', 5: 'astro-ph.CO', 6: 'astro-ph.EP', 7: 'astro-ph.GA', 8: 'astro-ph.HE', 9: 'astro-ph.IM', 10: 'astro-ph.SR', 11: 'atom-ph', 12: 'bayes-an', 13: 'chao-dyn', 14: 'chem-ph', 15: 'cmp-lg', 16: 'comp-gas', 17: 'cond-mat', 18: 'cond-mat.dis-nn', 19: 'cond-mat.mes-hall', 20: 'cond-mat.mtrl-sci', 21: 'cond-mat.other', 22: 'cond-mat.quant-gas', 23: 'cond-mat.soft', 24: 'cond-mat.stat-mech', 25: 'cond-mat.str-el', 26: 'cond-mat.supr-con', 27: 'cs.AI', 28: 'cs.AR', 29: 'cs.CC', 30: 'cs.CE', 31: 'cs.CG', 32: 'cs.CL', 33: 'cs.CR', 34: 'cs.CV', 35: 'cs.CY', 36: 'cs.DB', 37: 'cs.DC', 38: 'cs.DL', 39: 'cs.DM', 40: 'cs.DS', 41: 'cs.ET', 42: 'cs.FL', 43: 'cs.GL', 44: 'cs.GR', 45: 'cs.GT', 46: 'cs.HC', 47: 'cs.IR', 48: 'cs.IT', 49: 'cs.LG', 50: 'cs.LO', 51: 'cs.MA', 52: 'cs.MM', 53: 'cs.MS', 54: 'cs.NA', 55: 'cs.NE', 56: 'cs.NI', 57: 'cs.OH', 58: 'cs.OS', 59: 'cs.PF', 60: 'cs.PL', 61: 'cs.RO', 62: 'cs.SC', 63: 'cs.SD', 64: 'cs.SE', 65: 'cs.SI', 66: 'cs.SY', 67: 'dg-ga', 68: 'econ.EM', 69: 'econ.GN', 70: 'econ.TH', 71: 'eess.AS', 72: 'eess.IV', 73: 'eess.SP', 74: 'eess.SY', 75: 'funct-an', 76: 'gr-qc', 77: 'hep-ex', 78: 'hep-lat', 79: 'hep-ph', 80: 'hep-th', 81: 'math-ph', 82: 'math.AC', 83: 'math.AG', 84: 'math.AP', 85: 'math.AT', 86: 'math.CA', 87: 'math.CO', 88: 'math.CT', 89: 'math.CV', 90: 'math.DG', 91: 'math.DS', 92: 'math.FA', 93: 'math.GM', 94: 'math.GN', 95: 'math.GR', 96: 'math.GT', 97: 'math.HO', 98: 'math.KT', 99: 'math.LO', 100: 'math.MG', 101: 'math.NA', 102: 'math.NT', 103: 'math.OA', 104: 'math.OC', 105: 'math.PR', 106: 'math.QA', 107: 'math.RA', 108: 'math.RT', 109: 'math.SG', 110: 'math.SP', 111: 'math.ST', 112: 'mtrl-th', 113: 'nlin.AO', 114: 'nlin.CD', 115: 'nlin.CG', 116: 'nlin.PS', 117: 'nlin.SI', 118: 'nucl-ex', 119: 'nucl-th', 120: 'patt-sol', 121: 'physics.acc-ph', 122: 'physics.ao-ph', 123: 'physics.app-ph', 124: 'physics.atm-clus', 125: 'physics.atom-ph', 126: 'physics.bio-ph', 127: 'physics.chem-ph', 128: 'physics.class-ph', 129: 'physics.comp-ph', 130: 'physics.data-an', 131: 'physics.ed-ph', 132: 'physics.flu-dyn', 133: 'physics.gen-ph', 134: 'physics.geo-ph', 135: 'physics.hist-ph', 136: 'physics.ins-det', 137: 'physics.med-ph', 138: 'physics.optics', 139: 'physics.plasm-ph', 140: 'physics.pop-ph', 141: 'physics.soc-ph', 142: 'physics.space-ph', 143: 'plasm-ph', 144: 'q-alg', 145: 'q-bio.BM', 146: 'q-bio.CB', 147: 'q-bio.GN', 148: 'q-bio.MN', 149: 'q-bio.NC', 150: 'q-bio.OT', 151: 'q-bio.PE', 152: 'q-bio.QM', 153: 'q-bio.SC', 154: 'q-bio.TO', 155: 'q-fin.CP', 156: 'q-fin.EC', 157: 'q-fin.GN', 158: 'q-fin.MF', 159: 'q-fin.PM', 160: 'q-fin.PR', 161: 'q-fin.RM', 162: 'q-fin.ST', 163: 'q-fin.TR', 164: 'quant-ph', 165: 'solv-int', 166: 'stat.AP', 167: 'stat.CO', 168: 'stat.ME', 169: 'stat.ML', 170: 'stat.OT', 171: 'supr-con'} classes_to_num = { 'acc-phys': 0, 'adap-org': 1, 'alg-geom': 2, 'ao-sci': 3, 'astro-ph': 4, 'astro-ph.CO': 5, 'astro-ph.EP': 6, 'astro-ph.GA': 7, 'astro-ph.HE': 8, 'astro-ph.IM': 9, 'astro-ph.SR': 10, 'atom-ph': 11, 'bayes-an': 12, 'chao-dyn': 13, 'chem-ph': 14, 'cmp-lg': 15, 'comp-gas': 16, 'cond-mat': 17, 'cond-mat.dis-nn': 18, 'cond-mat.mes-hall': 19, 'cond-mat.mtrl-sci': 20, 'cond-mat.other': 21, 'cond-mat.quant-gas': 22, 'cond-mat.soft': 23, 'cond-mat.stat-mech': 24, 'cond-mat.str-el': 25, 'cond-mat.supr-con': 26, 'cs.AI': 27, 'cs.AR': 28, 'cs.CC': 29, 'cs.CE': 30, 'cs.CG': 31, 'cs.CL': 32, 'cs.CR': 33, 'cs.CV': 34, 'cs.CY': 35, 'cs.DB': 36, 'cs.DC': 37, 'cs.DL': 38, 'cs.DM': 39, 'cs.DS': 40, 'cs.ET': 41, 'cs.FL': 42, 'cs.GL': 43, 'cs.GR': 44, 'cs.GT': 45, 'cs.HC': 46, 'cs.IR': 47, 'cs.IT': 48, 'cs.LG': 49, 'cs.LO': 50, 'cs.MA': 51, 'cs.MM': 52, 'cs.MS': 53, 'cs.NA': 54, 'cs.NE': 55, 'cs.NI': 56, 'cs.OH': 57, 'cs.OS': 58, 'cs.PF': 59, 'cs.PL': 60, 'cs.RO': 61, 'cs.SC': 62, 'cs.SD': 63, 'cs.SE': 64, 'cs.SI': 65, 'cs.SY': 66, 'dg-ga': 67, 'econ.EM': 68, 'econ.GN': 69, 'econ.TH': 70, 'eess.AS': 71, 'eess.IV': 72, 'eess.SP': 73, 'eess.SY': 74, 'funct-an': 75, 'gr-qc': 76, 'hep-ex': 77, 'hep-lat': 78, 'hep-ph': 79, 'hep-th': 80, 'math-ph': 81, 'math.AC': 82, 'math.AG': 83, 'math.AP': 84, 'math.AT': 85, 'math.CA': 86, 'math.CO': 87, 'math.CT': 88, 'math.CV': 89, 'math.DG': 90, 'math.DS': 91, 'math.FA': 92, 'math.GM': 93, 'math.GN': 94, 'math.GR': 95, 'math.GT': 96, 'math.HO': 97, 'math.KT': 98, 'math.LO': 99, 'math.MG': 100, 'math.NA': 101, 'math.NT': 102, 'math.OA': 103, 'math.OC': 104, 'math.PR': 105, 'math.QA': 106, 'math.RA': 107, 'math.RT': 108, 'math.SG': 109, 'math.SP': 110, 'math.ST': 111, 'mtrl-th': 112, 'nlin.AO': 113, 'nlin.CD': 114, 'nlin.CG': 115, 'nlin.PS': 116, 'nlin.SI': 117, 'nucl-ex': 118, 'nucl-th': 119, 'patt-sol': 120, 'physics.acc-ph': 121, 'physics.ao-ph': 122, 'physics.app-ph': 123, 'physics.atm-clus': 124, 'physics.atom-ph': 125, 'physics.bio-ph': 126, 'physics.chem-ph': 127, 'physics.class-ph': 128, 'physics.comp-ph': 129, 'physics.data-an': 130, 'physics.ed-ph': 131, 'physics.flu-dyn': 132, 'physics.gen-ph': 133, 'physics.geo-ph': 134, 'physics.hist-ph': 135, 'physics.ins-det': 136, 'physics.med-ph': 137, 'physics.optics': 138, 'physics.plasm-ph': 139, 'physics.pop-ph': 140, 'physics.soc-ph': 141, 'physics.space-ph': 142, 'plasm-ph': 143, 'q-alg': 144, 'q-bio.BM': 145, 'q-bio.CB': 146, 'q-bio.GN': 147, 'q-bio.MN': 148, 'q-bio.NC': 149, 'q-bio.OT': 150, 'q-bio.PE': 151, 'q-bio.QM': 152, 'q-bio.SC': 153, 'q-bio.TO': 154, 'q-fin.CP': 155, 'q-fin.EC': 156, 'q-fin.GN': 157, 'q-fin.MF': 158, 'q-fin.PM': 159, 'q-fin.PR': 160, 'q-fin.RM': 161, 'q-fin.ST': 162, 'q-fin.TR': 163, 'quant-ph': 164, 'solv-int': 165, 'stat.AP': 166, 'stat.CO': 167, 'stat.ME': 168, 'stat.ML': 169, 'stat.OT': 170, 'supr-con': 171 }