| --- |
| dataset_info: |
| - config_name: default |
| features: |
| - name: sentence_idx |
| dtype: int64 |
| - name: words |
| sequence: string |
| - name: POS |
| sequence: int64 |
| - name: tag |
| sequence: int64 |
| splits: |
| - name: train |
| num_bytes: 16917605 |
| num_examples: 17480 |
| download_size: 2164774 |
| dataset_size: 16917605 |
| - config_name: subset1 |
| features: |
| - name: sentence_idx |
| dtype: int64 |
| - name: words |
| sequence: string |
| - name: POS |
| sequence: int64 |
| - name: tag |
| sequence: int64 |
| splits: |
| - name: train |
| num_bytes: 13350196.989130436 |
| num_examples: 13794 |
| download_size: 2008529 |
| dataset_size: 13350196.989130436 |
| - config_name: subset2 |
| features: |
| - name: sentence_idx |
| dtype: int64 |
| - name: words |
| sequence: string |
| - name: POS |
| sequence: int64 |
| - name: tag |
| sequence: int64 |
| splits: |
| - name: test |
| num_bytes: 3338033.1604691073 |
| num_examples: 3449 |
| download_size: 502967 |
| dataset_size: 3338033.1604691073 |
| configs: |
| - config_name: default |
| data_files: |
| - split: train |
| path: data/train-* |
| - config_name: subset1 |
| data_files: |
| - split: train |
| path: subset1/train-* |
| - config_name: subset2 |
| data_files: |
| - split: test |
| path: subset2/test-* |
| --- |
| |
| ```python |
| #these dictionary are useful for this dataset |
| pos_2_id = {'#': 0, '$': 1, "''": 2, '(': 3, ')': 4, '.': 5, ':': 6, 'CC': 7, 'CD': 8, 'DT': 9, 'EX': 10, 'FW': 11, 'IN': 12, 'JJ': 13, 'JJR': 14, 'JJS': 15, 'MD': 16, 'NN': 17, 'NNP': 18, 'NNPS': 19, 'NNS': 20, 'PDT': 21, 'POS': 22, 'PRP': 23, 'PRP$': 24, 'RB': 25, 'RBR': 26, 'RBS': 27, 'RP': 28, 'TO': 29, 'VB': 30, 'VBD': 31, 'VBG': 32, 'VBN': 33, 'VBP': 34, 'VBZ': 35, 'WDT': 36, 'WP': 37, 'WP$': 38, 'WRB': 39} |
| id_2_pos = {0: '#', 1: '$', 2: "''", 3: '(', 4: ')', 5: '.', 6: ':', 7: 'CC', 8: 'CD', 9: 'DT', 10: 'EX', 11: 'FW', 12: 'IN', 13: 'JJ', 14: 'JJR', 15: 'JJS', 16: 'MD', 17: 'NN', 18: 'NNP', 19: 'NNPS', 20: 'NNS', 21: 'PDT', 22: 'POS', 23: 'PRP', 24: 'PRP$', 25: 'RB', 26: 'RBR', 27: 'RBS', 28: 'RP', 29: 'TO', 30: 'VB', 31: 'VBD', 32: 'VBG', 33: 'VBN', 34: 'VBP', 35: 'VBZ', 36: 'WDT', 37: 'WP', 38: 'WP$', 39: 'WRB'} |
| tag_2_id = {'B-application': 0, 'B-cve id': 1, 'B-edition': 2, 'B-file': 3, 'B-function': 4, 'B-hardware': 5, 'B-language': 6, 'B-method': 7, 'B-os': 8, 'B-parameter': 9, 'B-programming language': 10, 'B-relevant_term': 11, 'B-update': 12, 'B-vendor': 13, 'B-version': 14, 'I-application': 15, 'I-edition': 16, 'I-hardware': 17, 'I-os': 18, 'I-relevant_term': 19, 'I-update': 20, 'I-vendor': 21, 'I-version': 22, 'O': 23} |
| id_2_tag = {0: 'B-application', 1: 'B-cve id', 2: 'B-edition', 3: 'B-file', 4: 'B-function', 5: 'B-hardware', 6: 'B-language', 7: 'B-method', 8: 'B-os', 9: 'B-parameter', 10: 'B-programming language', 11: 'B-relevant_term', 12: 'B-update', 13: 'B-vendor', 14: 'B-version', 15: 'I-application', 16: 'I-edition', 17: 'I-hardware', 18: 'I-os', 19: 'I-relevant_term', 20: 'I-update', 21: 'I-vendor', 22: 'I-version', 23: 'O'} |
| ``` |
|
|