Dataset Viewer
View in Dataset Viewer
Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code: ConfigNamesError Exception: FileNotFoundError Message: Couldn't find a dataset script at /src/services/worker/qhnprof/Telegram_News/Telegram_News.py or any data file in the same directory. Couldn't find 'qhnprof/Telegram_News' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in qhnprof/Telegram_News. Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 55, in compute_config_names_response for config in sorted(get_dataset_config_names(path=dataset, token=hf_token)) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 351, in get_dataset_config_names dataset_module = dataset_module_factory( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1508, in dataset_module_factory raise FileNotFoundError( FileNotFoundError: Couldn't find a dataset script at /src/services/worker/qhnprof/Telegram_News/Telegram_News.py or any data file in the same directory. Couldn't find 'qhnprof/Telegram_News' on the Hugging Face Hub either: FileNotFoundError: No (supported) data files or dataset script found in qhnprof/Telegram_News.
Need help to make the dataset viewer work? Open a discussion for direct support.
Telegram News (Farsi - Persian)
Updated 24 OCT 2022
bbc.pickle Total News: 139,275 Timespan: 2015-10-13 - 2022-10-24
fars.pickle Total News: 241,346 Timespan: 2015-09-26 - 2022-10-24
farsivoa.pickle Total News: 134,023 Timespan: 2015-10-07 - 2022-10-24
iranint.pickle Total News: 137,459 Timespan: 2017-05-16 - 2022-10-24
irna.pickle Total News: 178,395 Timespan: 2016-07-05 - 2022-10-24
khabar.pickle Total News: 384,922 Timespan: 2016-09-22 - 2022-10-24
Tabnak.pickle Total News: 102,122 Timespan: 2017-05-22 - 2022-10-24
Helper functions
def getTxt(msg):
txt=''
if msg.text:
txt+=msg.text+' '
if msg.caption:
txt+=msg.caption+' '
if not msg.web_page==None:
try:
txt+=msg.web_page.title+' '
txt+=msg.web_page.description
except:pass
txt=txt.lower().replace(u'\u200c', '').replace('\n','').replace('📸','').replace('\xa0','')
txt=re.sub(r'http\S+', '', txt)
txt=re.sub(r'[a-z]', '', txt)
txt=re.sub(r'[^\w\s\d]', '', txt)
return txt.strip()
def getDocs(m):
txt=getTxt(m)
if len(txt)>10:
return {'text':txt,'date':m.date}
else:
return ['']
def getDate(news):
return news. Date
Read the Files
with open('bbc.pickle', 'rb') as handle:
news=pickle.load(handle)
newsText=list(map(getTxt,news))
newsDate=list(map(getDate,news))
- Downloads last month
- 2