Open Dataset
Data Structure ?
3.3M
Data Structure ?
*The above analysis is the result extracted and analyzed by the system, and the specific actual data shall prevail.
README.md
このデータセットには、NLTKのReutersコーパス内の各ファイルのID、カテゴリ、および生テキストが含まれています。
内容
各ファイル(行)はニュース文書です。各文書は、1つ以上のカテゴリに分類することができます。 ファイルはまた、テストファイルまたはトレーニングファイルとして分類され、これはID列に記載されており、テキストモデルの構築/検証に使用されます。ファイルには合計10,788件のニュース文書があります。
謝辞
NLTKとその貢献者の皆さんに、行っていただいているすべてのことに感謝いたします。
コード
このデータセットは、以下のPythonコードを使用して生成されました。
import nltk import pandas as pd nltk.download('reuters') nltk.download('punkt') # Extract fileids from the reuters corpus fileids = reuters.fileids() # Initialize empty lists to store categories and raw text categories = [] text = [] # Loop through each file id and collect each files categories and raw text for file in fileids: categories.append(reuters.categories(file)) text.append(reuters.raw(file)) # Combine lists into pandas dataframe. reutersDf is the final dataframe. reutersDf = pd.DataFrame({'ids':fileids, 'categories':categories, 'text':text})
×
The dataset is currently being organized and other channels have been prepared for you. Please use them
The dataset is currently being organized and other channels have been prepared for you. Please use them
Note: Some data is currently being processed and cannot be directly downloaded. We kindly ask for your understanding and support.
No content available at the moment
No content available at the moment
- Share your thoughts
Go share your ideas~~
ALL
Welcome to exchange and share
Your sharing can help others better utilize data.
Data usage instructions: h1>
I. Data Source and Display Explanation:
- 1. The data originates from internet data collection or provided by service providers, and this platform offers users the ability to view and browse datasets.
- 2. This platform serves only as a basic information display for datasets, including but not limited to image, text, video, and audio file types.
- 3. Basic dataset information comes from the original data source or the information provided by the data provider. If there are discrepancies in the dataset description, please refer to the original data source or service provider's address.
II. Ownership Explanation:
- 1. All datasets on this site are copyrighted by their original publishers or data providers.
III. Data Reposting Explanation:
- 1. If you need to repost data from this site, please retain the original data source URL and related copyright notices.
IV. Infringement and Handling Explanation:
- 1. If any data on this site involves infringement, please contact us promptly, and we will arrange for the data to be taken offline.
- 1. The data originates from internet data collection or provided by service providers, and this platform offers users the ability to view and browse datasets.
- 2. This platform serves only as a basic information display for datasets, including but not limited to image, text, video, and audio file types.
- 3. Basic dataset information comes from the original data source or the information provided by the data provider. If there are discrepancies in the dataset description, please refer to the original data source or service provider's address.
- 1. All datasets on this site are copyrighted by their original publishers or data providers.
- 1. If you need to repost data from this site, please retain the original data source URL and related copyright notices.
- 1. If any data on this site involves infringement, please contact us promptly, and we will arrange for the data to be taken offline.