egm517 commited on
Commit
cf2f684
1 Parent(s): f7e3b82

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +185 -0
README.md CHANGED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license:
5
+ - cc-by-sa-4.0
6
+ task_categories:
7
+ - fill-mask
8
+ - summarization
9
+ - text-classification
10
+ - token-classification
11
+ task_ids:
12
+ - masked-language-modeling
13
+ - multi-class-classification
14
+ - topic-classification
15
+ - named-entity-recognition
16
+ pretty_name: "HUPD"
17
+ tags:
18
+ - patents
19
+ ---
20
+ # Dataset Card for The Harvard USPTO Patent Dataset (HUPD)
21
+ ![HUPD-Diagram](https://huggingface.co/datasets/HUPD/hupd/resolve/main/HUPD-Logo.png)
22
+ ## Dataset Description
23
+ - **Homepage:** [https://patentdataset.org/](https://patentdataset.org/)
24
+ - **Repository:** [HUPD GitHub repository](https://github.com/suzgunmirac/hupd)
25
+ - **Paper:** [HUPD arXiv Submission](https://arxiv.org/abs/2207.04043)
26
+ - **Point of Contact:** Mirac Suzgun
27
+ ### Dataset Summary
28
+ The Harvard USPTO Dataset (HUPD) is a large-scale, well-structured, and multi-purpose corpus of English-language utility patent applications filed to the United States Patent and Trademark Office (USPTO) between January 2004 and December 2018.
29
+ ### Experiments and Tasks Considered in the Paper
30
+ - **Patent Acceptance Prediction**: Given a section of a patent application (in particular, the abstract, claims, or description), predict whether the application will be accepted by the USPTO.
31
+ - **Automated Subject (IPC/CPC) Classification**: Predict the primary IPC or CPC code of a patent application given (some subset of) the text of the application.
32
+ - **Language Modeling**: Masked/autoregressive language modeling on the claims and description sections of patent applications.
33
+ - **Abstractive Summarization**: Given the claims or claims section of a patent application, generate the abstract.
34
+ ### Languages
35
+ The dataset contains English text only.
36
+ ### Domain
37
+ Patents (intellectual property).
38
+ ### Dataset Curators
39
+ The dataset was created by Mirac Suzgun, Luke Melas-Kyriazi, Suproteem K. Sarkar, Scott Duke Kominers, and Stuart M. Shieber.
40
+ ## Dataset Structure
41
+ Each patent application is defined by a distinct JSON file, named after its application number, and includes information about
42
+ the application and publication numbers,
43
+ title,
44
+ decision status,
45
+ filing and publication dates,
46
+ primary and secondary classification codes,
47
+ inventor(s),
48
+ examiner,
49
+ attorney,
50
+ abstract,
51
+ claims,
52
+ background,
53
+ summary, and
54
+ full description of the proposed invention, among other fields. There are also supplementary variables, such as the small-entity indicator (which denotes whether the applicant is considered to be a small entity by the USPTO) and the foreign-filing indicator (which denotes whether the application was originally filed in a foreign country).
55
+ In total, there are 34 data fields for each application. A full list of data fields used in the dataset is listed in the next section.
56
+ ### Data Instances
57
+ Each patent application in our patent dataset is defined by a distinct JSON file (e.g., ``8914308.json``), named after its unique application number. The format of the JSON files is as follows:
58
+ ```python
59
+ {
60
+ "application_number": "...",
61
+ "publication_number": "...",
62
+ "title": "...",
63
+ "decision": "...",
64
+ "date_produced": "...",
65
+ "date_published": "...",
66
+ "main_cpc_label": "...",
67
+ "cpc_labels": ["...", "...", "..."],
68
+ "main_ipcr_label": "...",
69
+ "ipcr_labels": ["...", "...", "..."],
70
+ "patent_number": "...",
71
+ "filing_date": "...",
72
+ "patent_issue_date": "...",
73
+ "abandon_date": "...",
74
+ "uspc_class": "...",
75
+ "uspc_subclass": "...",
76
+ "examiner_id": "...",
77
+ "examiner_name_last": "...",
78
+ "examiner_name_first": "...",
79
+ "examiner_name_middle": "...",
80
+ "inventor_list": [
81
+ {
82
+ "inventor_name_last": "...",
83
+ "inventor_name_first": "...",
84
+ "inventor_city": "...",
85
+ "inventor_state": "...",
86
+ "inventor_country": "..."
87
+ }
88
+ ],
89
+ "abstract": "...",
90
+ "claims": "...",
91
+ "background": "...",
92
+ "summary": "...",
93
+ "full_description": "..."
94
+ }
95
+ ```
96
+ ## Usage
97
+ ### Loading the Dataset
98
+ #### Sample (January 2016 Subset)
99
+ The following command can be used to load the `sample` version of the dataset, which contains all the patent applications that were filed to the USPTO during the month of January in 2016. This small subset of the dataset can be used for debugging and exploration purposes.
100
+
101
+ ```python
102
+ from datasets import load_dataset
103
+ dataset_dict = load_dataset('HUPD/hupd',
104
+ name='sample',
105
+ data_files="https://huggingface.co/datasets/HUPD/hupd/blob/main/hupd_metadata_2022-02-22.feather",
106
+ icpr_label=None,
107
+ train_filing_start_date='2016-01-01',
108
+ train_filing_end_date='2016-01-21',
109
+ val_filing_start_date='2016-01-22',
110
+ val_filing_end_date='2016-01-31',
111
+ )
112
+ ```
113
+
114
+ #### Full Dataset
115
+
116
+ If you would like to use the **full** version of the dataset, please make sure that change the `name` field from `sample` to `all`, specify the training and validation start and end dates carefully, and set `force_extract` to be `True` (so that you would only untar the files that you are interested in and not squander your disk storage space). In the following example, for instance, we set the training set year range to be [2011, 2016] (inclusive) and the validation set year range to be 2017.
117
+
118
+ ```python
119
+ from datasets import load_dataset
120
+ dataset_dict = load_dataset('HUPD/hupd',
121
+ name='all',
122
+ data_files="https://huggingface.co/datasets/HUPD/hupd/blob/main/hupd_metadata_2022-02-22.feather",
123
+ icpr_label=None,
124
+ force_extract=True,
125
+ train_filing_start_date='2011-01-01',
126
+ train_filing_end_date='2016-12-31',
127
+ val_filing_start_date='2017-01-01',
128
+ val_filing_end_date='2017-12-31',
129
+ )
130
+ ```
131
+
132
+ ### Google Colab Notebook
133
+ You can also use the following Google Colab notebooks to explore HUPD.
134
+ - [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1_ZsI7WFTsEO0iu_0g3BLTkIkOUqPzCET?usp=sharing)[ HUPD Examples: Loading the Dataset](https://colab.research.google.com/drive/1_ZsI7WFTsEO0iu_0g3BLTkIkOUqPzCET?usp=sharing)
135
+ - [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)[ HUPD Examples: Loading HUPD By Using HuggingFace's Libraries](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)
136
+ - [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)[ HUPD Examples: Using the HUPD DistilRoBERTa Model](https://colab.research.google.com/drive/11t69BWcAVXndQxAOCpKaGkKkEYJSfydT?usp=sharing)
137
+ - [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)[ HUPD Examples: Using the HUPD T5-Small Summarization Model](https://colab.research.google.com/drive/1VkCtrRIryzev_ixDjmJcfJNK-q6Vx24y?usp=sharing)
138
+
139
+ ## Dataset Creation
140
+
141
+ ### Source Data
142
+
143
+ HUPD synthesizes multiple data sources from the USPTO: While the full patent application texts were obtained from the USPTO Bulk Data Storage System (Patent Application Data/XML Versions 4.0, 4.1, 4.2, 4.3, 4.4 ICE, as well as Version 1.5) as XML files, the bibliographic filing metadata were obtained from the USPTO Patent Examination Research Dataset (in February, 2021).
144
+
145
+
146
+ ### Annotations
147
+
148
+ Beyond our patent decision label, for which construction details are provided in the paper, the dataset does not contain any human-written or computer-generated annotations beyond those produced by patent applicants or the USPTO.
149
+
150
+ ### Data Shift
151
+
152
+ A major feature of HUPD is its structure, which allows it to demonstrate the evolution of concepts over time. As we illustrate in the paper, the criteria for patent acceptance evolve over time at different rates, depending on category. We believe this is an important feature of the dataset, not only because of the social scientific questions it raises, but also because it facilitates research on models that can accommodate concept shift in a real-world setting.
153
+
154
+
155
+ ### Personal and Sensitive Information
156
+
157
+ The dataset contains information about the inventor(s) and examiner of each patent application. These details are, however, already in the public domain and available on the USPTO's Patent Application Information Retrieval (PAIR) system, as well as on Google Patents and PatentsView.
158
+
159
+ ### Social Impact of the Dataset
160
+
161
+ The authors of the dataset hope that HUPD will have a positive social impact on the ML/NLP and Econ/IP communities. They discuss these considerations in more detail in [the paper](https://arxiv.org/abs/2207.04043).
162
+
163
+ ### Impact on Underserved Communities and Discussion of Biases
164
+ The dataset contains patent applications in English, a language with heavy attention from the NLP community. However, innovation is spread across many languages, cultures, and communities that are not reflected in this dataset. HUPD is thus not representative of all kinds of innovation. Furthermore, patent applications require a fixed cost to draft and file and are not accessible to everyone. One goal of this dataset is to spur research that reduces the cost of drafting applications, potentially allowing for more people to seek intellectual property protection for their innovations.
165
+
166
+ ### Discussion of Biases
167
+ Section 4 of [the HUPD paper](https://arxiv.org/abs/2207.04043) provides an examination of the dataset for potential biases. It shows, among other things, that female inventors are notably underrepresented in the U.S. patenting system, that small and micro entities (e.g., independent inventors, small companies, non-profit organizations) are less likely to have positive outcomes in patent obtaining than large entities (e.g., companies with more than 500 employees), and that patent filing and acceptance rates are not uniformly distributed across the US. Our empirical findings suggest that any study focusing on the acceptance prediction task, especially if it is using the inventor information or the small-entity indicator as part of the input, should be aware of the the potential biases present in the dataset and interpret their results carefully in light of those biases.
168
+
169
+ - Please refer to Section 4 and Section D for an in-depth discussion of potential biases embedded in the dataset.
170
+
171
+
172
+ ### Licensing Information
173
+
174
+ HUPD is released under the CreativeCommons Attribution-NonCommercial-ShareAlike 4.0 International.
175
+
176
+ ### Citation Information
177
+
178
+ ```
179
+ @article{suzgun2022hupd,
180
+ title={The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applications},
181
+ author={Suzgun, Mirac and Melas-Kyriazi, Luke and Sarkar, Suproteem K. and Kominers, Scott Duke and Shieber, Stuart M.},
182
+ year={2022},
183
+ publisher={arXiv preprint arXiv:2207.04043},
184
+ url={https://arxiv.org/abs/2207.04043},
185
+ ```