saied commited on
Commit
323cefc
1 Parent(s): 19bdedc

adding test notebook for test

Browse files
.ipynb_checkpoints/test-checkpoint.ipynb ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [],
3
+ "metadata": {},
4
+ "nbformat": 4,
5
+ "nbformat_minor": 4
6
+ }
clean.zip → sample.zip RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:55c23af1eb25af74456b5ea2fe05422431bb5172dd7680efd57e0a9b81a228a1
3
- size 16004
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75d333c3cdc2f99bd1a0a3e04126487ef8d0e06e33d174b2035ca39882579e7e
3
+ size 796516
sampleForClean.csv_clean.csv ADDED
The diff for this file is too large to render. See raw diff
 
tasnim_daily.py CHANGED
@@ -4,12 +4,7 @@ import os
4
  import sys
5
  csv.field_size_limit(sys.maxsize)
6
 
7
- _DESCRIPTION = """
8
- persian_news_dataset is a collection of 5 million news articles.
9
- News articles have been gathered from more than 10 news agencies for the last 12 years.
10
- The dataset is provided by Rohan AI lab for research purposes.
11
- for more information refer to this link:
12
- """
13
  _PROJECT_URL = """"""
14
 
15
 
@@ -20,7 +15,7 @@ https://saied71.github.io/RohanAiLab/,
20
  }
21
  """
22
 
23
- _URL = "persian_news_dataset.zip"
24
 
25
 
26
 
@@ -32,8 +27,7 @@ class Persian_news(datasets.GeneratorBasedBuilder):
32
  features=datasets.Features(
33
  {
34
  "text": datasets.Value("string"),
35
- "title": datasets.Value("string"),
36
- "category": datasets.Value("string")
37
  }
38
  ),
39
  homepage=_PROJECT_URL,
@@ -45,7 +39,7 @@ class Persian_news(datasets.GeneratorBasedBuilder):
45
  def _split_generators(self, dl_manager):
46
  """Returns SplitGenerators."""
47
  dl_dir = dl_manager.download_and_extract(_URL)
48
- data_dir = os.path.join(dl_dir, "persian_news_dataset.csv")
49
  return [
50
  datasets.SplitGenerator(
51
  name=datasets.Split.TRAIN,
@@ -61,8 +55,6 @@ class Persian_news(datasets.GeneratorBasedBuilder):
61
  if id_ == 0:
62
  continue
63
  yield id_, {
64
- "text": row[0],
65
- "title": row[2],
66
- "category": row[1],
67
  }
68
-
 
4
  import sys
5
  csv.field_size_limit(sys.maxsize)
6
 
7
+ _DESCRIPTION = """"""
 
 
 
 
 
8
  _PROJECT_URL = """"""
9
 
10
 
 
15
  }
16
  """
17
 
18
+ _URL = "sample.zip"
19
 
20
 
21
 
 
27
  features=datasets.Features(
28
  {
29
  "text": datasets.Value("string"),
30
+ "summary": datasets.Value("summary"),
 
31
  }
32
  ),
33
  homepage=_PROJECT_URL,
 
39
  def _split_generators(self, dl_manager):
40
  """Returns SplitGenerators."""
41
  dl_dir = dl_manager.download_and_extract(_URL)
42
+ data_dir = os.path.join(dl_dir, "sampleForClean.csv_clean.csv")
43
  return [
44
  datasets.SplitGenerator(
45
  name=datasets.Split.TRAIN,
 
55
  if id_ == 0:
56
  continue
57
  yield id_, {
58
+ "text": row[1],
59
+ "summary": row[0]
 
60
  }
 
tasnim_daily.py.lock ADDED
File without changes
test.ipynb ADDED
The diff for this file is too large to render. See raw diff