parquet-converter
commited on
Commit
•
7ec9bae
1
Parent(s):
1d2addd
Update parquet files
Browse files
.gitattributes
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
19 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
# Audio files - uncompressed
|
29 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
32 |
-
# Audio files - compressed
|
33 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
38 |
-
hfreviews.jsonl filter=lfs diff=lfs merge=lfs -text
|
39 |
-
healthcare_facilities_reviews.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- ru
|
4 |
-
multilinguality:
|
5 |
-
- monolingual
|
6 |
-
size_categories:
|
7 |
-
- 10K<n<100K
|
8 |
-
task_categories:
|
9 |
-
- text-classification
|
10 |
-
task_ids:
|
11 |
-
- sentiment-classification
|
12 |
-
---
|
13 |
-
### Dataset Summary
|
14 |
-
The dataset contains user reviews about medical facilities.
|
15 |
-
|
16 |
-
In total it contains 70,597 reviews. The detailed distribution on sentiment scale is:
|
17 |
-
- 41,419 positive reviews;
|
18 |
-
- 29,178 negative reviews.
|
19 |
-
### Data Fields
|
20 |
-
Each sample contains the following fields:
|
21 |
-
- **review_id**;
|
22 |
-
- **category** category of medical facility (one of 48);
|
23 |
-
- **title**: review title;
|
24 |
-
- **content**: review text;
|
25 |
-
- **sentiment**: sentiment (<em>positive</em> or <em>negative</em>);
|
26 |
-
- **source_url**.
|
27 |
-
### Python
|
28 |
-
```python3
|
29 |
-
import pandas as pd
|
30 |
-
df = pd.read_json('healthcare_facilities_reviews.jsonl', lines=True)
|
31 |
-
df.sample(5)
|
32 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
healthcare_facilities_reviews.py
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
import datasets
|
2 |
-
import json
|
3 |
-
|
4 |
-
class HfreviewsConfig(datasets.BuilderConfig):
|
5 |
-
def __init__(self, features, **kwargs):
|
6 |
-
super(HfreviewsConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
7 |
-
self.features = features
|
8 |
-
|
9 |
-
class HealthcareFacilitiesReviews(datasets.GeneratorBasedBuilder):
|
10 |
-
BUILDER_CONFIGS = [
|
11 |
-
HfreviewsConfig(
|
12 |
-
name="simple",
|
13 |
-
description="Simple config",
|
14 |
-
features=["content", "title", "sentiment", "category", "review_id", "source_url"],
|
15 |
-
)
|
16 |
-
]
|
17 |
-
|
18 |
-
def _info(self):
|
19 |
-
return datasets.DatasetInfo(
|
20 |
-
description='Healthcare facilities reviews dataset.',
|
21 |
-
features=datasets.Features(
|
22 |
-
{
|
23 |
-
"content": datasets.Value("string"),
|
24 |
-
"title": datasets.Value("string"),
|
25 |
-
"sentiment": datasets.Value("string"),
|
26 |
-
"category": datasets.Value("string"),
|
27 |
-
"review_id": datasets.Value("string"),
|
28 |
-
"source_url": datasets.Value("string"),
|
29 |
-
"Idx": datasets.Value("int32"),
|
30 |
-
}
|
31 |
-
),
|
32 |
-
supervised_keys=None,
|
33 |
-
homepage='',
|
34 |
-
)
|
35 |
-
|
36 |
-
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
37 |
-
urls_to_download = {
|
38 |
-
"train": "healthcare_facilities_reviews.jsonl",
|
39 |
-
"dev": "healthcare_facilities_reviews.jsonl",
|
40 |
-
}
|
41 |
-
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
42 |
-
|
43 |
-
return [
|
44 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
45 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
46 |
-
]
|
47 |
-
|
48 |
-
def _generate_examples(self, filepath):
|
49 |
-
"""Yields examples."""
|
50 |
-
with open(filepath, encoding="utf-8") as f:
|
51 |
-
for uid, row in enumerate(f):
|
52 |
-
data = json.loads(row)
|
53 |
-
data["Idx"] = uid
|
54 |
-
yield uid, data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
healthcare_facilities_reviews.jsonl → simple/healthcare_facilities_reviews-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb6784e528e5c22e3bc8888ed8d03e91a68fc0fb03bb828d206ff686b7a8aa26
|
3 |
+
size 44314725
|
simple/healthcare_facilities_reviews-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb6784e528e5c22e3bc8888ed8d03e91a68fc0fb03bb828d206ff686b7a8aa26
|
3 |
+
size 44314725
|