Update clefip2011.py
Browse files- clefip2011.py +28 -3
clefip2011.py
CHANGED
|
@@ -3,17 +3,42 @@ import pandas as pd
|
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
class CLEFIP2011Config(datasets.BuilderConfig):
|
| 7 |
"""Custom Config for CLEFIP2011"""
|
| 8 |
|
| 9 |
-
def __init__(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
super().__init__(**kwargs)
|
| 11 |
self.dataset_type = dataset_type
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
class CLEFIP2011(datasets.DatasetBuilder):
|
| 15 |
"""Custom Dataset Loader"""
|
| 16 |
|
|
|
|
|
|
|
| 17 |
BUILDER_CONFIG_CLASS = CLEFIP2011Config
|
| 18 |
|
| 19 |
BUILDER_CONFIGS = [
|
|
|
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
|
| 6 |
+
_CITATION = """\
|
| 7 |
+
@InProceedings{suzgun2021:hupd,
|
| 8 |
+
title = {The Harvard USPTO Patent Dataset},
|
| 9 |
+
authors={Mirac Suzgun and Suproteem Sarkar and Luke Melas-Kyriazi and Scott Kominers and Stuart Shieber},
|
| 10 |
+
year={2021}
|
| 11 |
+
}
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
_DESCRIPTION = """
|
| 16 |
+
The Harvard USPTO Patent Dataset (HUPD) is a large-scale, well-structured, and multi-purpose corpus
|
| 17 |
+
of English-language patent applications filed to the United States Patent and Trademark Office (USPTO)
|
| 18 |
+
between 2004 and 2018. With more than 4.5 million patent documents, HUPD is two to three times larger
|
| 19 |
+
than comparable corpora. Unlike other NLP patent datasets, HUPD contains the inventor-submitted versions
|
| 20 |
+
of patent applications, not the final versions of granted patents, allowing us to study patentability at
|
| 21 |
+
the time of filing using NLP methods for the first time.
|
| 22 |
+
"""
|
| 23 |
+
|
| 24 |
+
|
| 25 |
class CLEFIP2011Config(datasets.BuilderConfig):
|
| 26 |
"""Custom Config for CLEFIP2011"""
|
| 27 |
|
| 28 |
+
def __init__(
|
| 29 |
+
self,
|
| 30 |
+
dataset_type: str = None
|
| 31 |
+
**kwargs
|
| 32 |
+
):
|
| 33 |
super().__init__(**kwargs)
|
| 34 |
self.dataset_type = dataset_type
|
| 35 |
+
|
| 36 |
|
| 37 |
+
class CLEFIP2011(datasets.GeneratorBasedBuilder):
|
|
|
|
| 38 |
"""Custom Dataset Loader"""
|
| 39 |
|
| 40 |
+
_DESCRIPTION
|
| 41 |
+
|
| 42 |
BUILDER_CONFIG_CLASS = CLEFIP2011Config
|
| 43 |
|
| 44 |
BUILDER_CONFIGS = [
|