Browse Source

fixed comment format

tags/v0.4.10
Violet Yao 5 years ago
parent
commit
ad6a55ba26
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      reproduction/text_classification/data/yelpLoader.py

+ 7
- 7
reproduction/text_classification/data/yelpLoader.py View File

@@ -13,8 +13,8 @@ from reproduction.utils import check_dataloader_paths
class yelpLoader(JsonLoader):
"""
读取Yelp数据集, DataSet包含fields:
读取Yelp数据集, DataSet包含fields:
review_id: str, 22 character unique review id
user_id: str, 22 character unique user id
business_id: str, 22 character business id
@@ -24,11 +24,11 @@ class yelpLoader(JsonLoader):
date: str, date formatted YYYY-MM-DD
words: list(str), 需要分类的文本
target: str, 文本的标签
数据来源: https://www.yelp.com/dataset/download
:param fine_grained: 是否使用SST-5标准,若 ``False`` , 使用SST-2。Default: ``False``
"""
数据来源: https://www.yelp.com/dataset/download
:param fine_grained: 是否使用SST-5标准,若 ``False`` , 使用SST-2。Default: ``False``
"""
def __init__(self, fine_grained=False):
super(yelpLoader, self).__init__()


Loading…
Cancel
Save