realoperator42 commited on
Commit
01af5d1
·
verified ·
1 Parent(s): 227cc72

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +152 -147
  2. UPLOAD_INSTRUCTIONS.md +81 -0
  3. anime_full_data.json +0 -0
README.md CHANGED
@@ -1,147 +1,152 @@
1
- ---
2
- language:
3
- - en
4
- - ja
5
- license: cc-by-4.0
6
- tags:
7
- - not-for-all-audiences
8
- - anime
9
- - entertainment
10
- - japanese-culture
11
- - television
12
- pretty_name: Anime Titles Dataset
13
- size_categories:
14
- - n<1K
15
- ---
16
-
17
- # Anime Dataset
18
-
19
- ## Dataset Description
20
-
21
- This dataset contains comprehensive information about anime series scraped from MyAnimeList (MAL). It includes detailed metadata about 871 (approx) anime series, making it valuable for various NLP tasks, recommendation systems, and cultural analysis.
22
-
23
- This dataset has NSFW content.
24
-
25
- ### Dataset Summary
26
-
27
- - **Anime Entries**: 50 anime series with rich metadata
28
- - **Languages**: English and Japanese (titles, descriptions)
29
- - **Format**: JSONL (JSON Lines) for efficient streaming
30
- - **Source**: MyAnimeList (scraped data)
31
-
32
- ## Dataset Structure
33
-
34
- ### Data Files
35
-
36
- The dataset consists of one main file:
37
-
38
- - **anime_data.jsonl**: Contains information about anime series
39
-
40
- ### Anime Data Fields
41
-
42
- Each anime entry contains:
43
- - `anime_id`: Unique identifier from MyAnimeList
44
- - `url`: MyAnimeList URL
45
- - `title_english`: English title
46
- - `title_romaji`: Romanized Japanese title
47
- - `title_japanese`: Original Japanese title
48
- - `title_synonyms`: Alternative titles
49
- - `synopsis`: Detailed plot summary
50
- - `description`: Additional description
51
- - `type`: Format (TV, Movie, OVA, etc.)
52
- - `episodes`: Number of episodes
53
- - `status`: Airing status
54
- - `aired_from` / `aired_to`: Air dates
55
- - `year`: Release year
56
- - `genres`: List of genres
57
- - `themes`: Thematic elements
58
- - `demographics`: Target demographic
59
- - `studios`: Production studios
60
- - `producers`: Production companies
61
- - `licensors`: Licensing companies
62
- - `source`: Source material
63
- - `duration`: Episode duration
64
- - `rating`: Age rating
65
- - `score`: User rating score
66
- - `characters`: List of character names
67
- - `related_anime`: Related series
68
-
69
-
70
- ## Usage
71
-
72
- ### Loading the Dataset
73
-
74
- ```python
75
- import json
76
-
77
- # Load anime data
78
- anime_data = []
79
- with open('anime_data.jsonl', 'r', encoding='utf-8') as f:
80
- for line in f:
81
- anime_data.append(json.loads(line))
82
- ```
83
-
84
- ### Example: Analyzing Genres
85
-
86
- ```python
87
- # Count anime by genre
88
- genre_counts = {}
89
- for anime in anime_data:
90
- for genre in anime.get('genres', []):
91
- genre_counts[genre] = genre_counts.get(genre, 0) + 1
92
-
93
- # Sort by popularity
94
- sorted_genres = sorted(genre_counts.items(), key=lambda x: x[1], reverse=True)
95
- ```
96
-
97
- ### Example: Finding Anime by Studio
98
-
99
- ```python
100
- # Group anime by studio
101
- studio_anime = {}
102
- for anime in anime_data:
103
- for studio in anime.get('studios', []):
104
- if studio not in studio_anime:
105
- studio_anime[studio] = []
106
- studio_anime[studio].append(anime['title_english'] or anime['title_romaji'])
107
- ```
108
-
109
- ## Dataset Creation
110
-
111
- ### Source Data
112
-
113
- The dataset was created by scraping data from MyAnimeList using Scrapy, focusing on the most popular anime series.
114
-
115
- ### Data Collection Process
116
-
117
- 1. Anime data was scraped from MyAnimeList's top anime pages (sorted by popularity)
118
- 2. Data was cleaned and normalized for consistency
119
- 3. All text was preserved in its original form (including Japanese characters)
120
- 4. The scraper respects rate limits with a 2-second delay between requests
121
-
122
- ### Preprocessing
123
-
124
- - Converted from JSON to JSONL format for better streaming support
125
- - Maintained UTF-8 encoding for proper Japanese character support
126
- - No text normalization applied to preserve original content
127
-
128
- ## Considerations for Using the Data
129
-
130
- ### Licensing
131
-
132
- This dataset is released under CC-BY-4.0 license. The data is collected from publicly available sources:
133
- - MyAnimeList content is used under fair use for research purposes
134
- - Users should respect the original content creators and MyAnimeList's terms of service
135
-
136
- ### Limitations
137
-
138
- - Dataset size is limited to 50 anime entries
139
- - Data is biased towards popular anime (scraped from "top anime" pages)
140
- - Some fields may be empty or contain placeholder values
141
- - Data represents a snapshot from the collection date
142
-
143
- ### Ethical Considerations
144
-
145
- - This dataset is intended for research and educational purposes
146
- - Users should be mindful of potential biases in user-generated content (ratings, favorites)
147
- - The dataset reflects the anime community's preferences and may not be representative of all anime content
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ja
5
+ license: cc-by-4.0
6
+ task_categories:
7
+ - text-generation
8
+ tags:
9
+ - anime
10
+ - characters
11
+ - entertainment
12
+ - japanese-culture
13
+ - nsfw
14
+ - notsafeforwork
15
+ - Not-For-All-Audiences
16
+ pretty_name: Anime Titles Dataset
17
+ size_categories:
18
+ - n<1K
19
+ ---
20
+
21
+ # Anime Dataset
22
+
23
+ ## Dataset Description
24
+
25
+ This dataset contains comprehensive information about anime series scraped from MyAnimeList (MAL). It includes detailed metadata about 871 (approx) anime series, making it valuable for various NLP tasks, recommendation systems, and cultural analysis.
26
+
27
+ This dataset has NSFW content.
28
+
29
+ ### Dataset Summary
30
+
31
+ - **Anime Entries**: 50 anime series with rich metadata
32
+ - **Languages**: English and Japanese (titles, descriptions)
33
+ - **Format**: JSONL (JSON Lines) for efficient streaming
34
+ - **Source**: MyAnimeList (scraped data)
35
+
36
+ ## Dataset Structure
37
+
38
+ ### Data Files
39
+
40
+ The dataset consists of one main file:
41
+
42
+ - **anime_data.jsonl**: Contains information about anime series
43
+
44
+ ### Anime Data Fields
45
+
46
+ Each anime entry contains:
47
+ - `anime_id`: Unique identifier from MyAnimeList
48
+ - `url`: MyAnimeList URL
49
+ - `title_english`: English title
50
+ - `title_romaji`: Romanized Japanese title
51
+ - `title_japanese`: Original Japanese title
52
+ - `title_synonyms`: Alternative titles
53
+ - `synopsis`: Detailed plot summary
54
+ - `description`: Additional description
55
+ - `type`: Format (TV, Movie, OVA, etc.)
56
+ - `episodes`: Number of episodes
57
+ - `status`: Airing status
58
+ - `aired_from` / `aired_to`: Air dates
59
+ - `year`: Release year
60
+ - `genres`: List of genres
61
+ - `themes`: Thematic elements
62
+ - `demographics`: Target demographic
63
+ - `studios`: Production studios
64
+ - `producers`: Production companies
65
+ - `licensors`: Licensing companies
66
+ - `source`: Source material
67
+ - `duration`: Episode duration
68
+ - `rating`: Age rating
69
+ - `score`: User rating score
70
+ - `characters`: List of character names
71
+ - `related_anime`: Related series
72
+
73
+
74
+ ## Usage
75
+
76
+ ### Loading the Dataset
77
+
78
+ ```python
79
+ import json
80
+
81
+ # Load anime data
82
+ anime_data = []
83
+ with open('anime_data.jsonl', 'r', encoding='utf-8') as f:
84
+ for line in f:
85
+ anime_data.append(json.loads(line))
86
+ ```
87
+
88
+ ### Example: Analyzing Genres
89
+
90
+ ```python
91
+ # Count anime by genre
92
+ genre_counts = {}
93
+ for anime in anime_data:
94
+ for genre in anime.get('genres', []):
95
+ genre_counts[genre] = genre_counts.get(genre, 0) + 1
96
+
97
+ # Sort by popularity
98
+ sorted_genres = sorted(genre_counts.items(), key=lambda x: x[1], reverse=True)
99
+ ```
100
+
101
+ ### Example: Finding Anime by Studio
102
+
103
+ ```python
104
+ # Group anime by studio
105
+ studio_anime = {}
106
+ for anime in anime_data:
107
+ for studio in anime.get('studios', []):
108
+ if studio not in studio_anime:
109
+ studio_anime[studio] = []
110
+ studio_anime[studio].append(anime['title_english'] or anime['title_romaji'])
111
+ ```
112
+
113
+ ## Dataset Creation
114
+
115
+ ### Source Data
116
+
117
+ The dataset was created by scraping data from MyAnimeList using Scrapy, focusing on the most popular anime series.
118
+
119
+ ### Data Collection Process
120
+
121
+ 1. Anime data was scraped from MyAnimeList's top anime pages (sorted by popularity)
122
+ 2. Data was cleaned and normalized for consistency
123
+ 3. All text was preserved in its original form (including Japanese characters)
124
+ 4. The scraper respects rate limits with a 2-second delay between requests
125
+
126
+ ### Preprocessing
127
+
128
+ - Converted from JSON to JSONL format for better streaming support
129
+ - Maintained UTF-8 encoding for proper Japanese character support
130
+ - No text normalization applied to preserve original content
131
+
132
+ ## Considerations for Using the Data
133
+
134
+ ### Licensing
135
+
136
+ This dataset is released under CC-BY-4.0 license. The data is collected from publicly available sources:
137
+ - MyAnimeList content is used under fair use for research purposes
138
+ - Users should respect the original content creators and MyAnimeList's terms of service
139
+
140
+ ### Limitations
141
+
142
+ - Dataset size is limited to 50 anime entries
143
+ - Data is biased towards popular anime (scraped from "top anime" pages)
144
+ - Some fields may be empty or contain placeholder values
145
+ - Data represents a snapshot from the collection date
146
+
147
+ ### Ethical Considerations
148
+
149
+ - This dataset is intended for research and educational purposes
150
+ - Users should be mindful of potential biases in user-generated content (ratings, favorites)
151
+ - The dataset reflects the anime community's preferences and may not be representative of all anime content
152
+
UPLOAD_INSTRUCTIONS.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How to Upload Your Anime Dataset to Hugging Face
2
+
3
+ ## Prerequisites
4
+
5
+ 1. **Hugging Face Account**: Create one at https://huggingface.co/join
6
+ 2. **Access Token**: Get it from https://huggingface.co/settings/tokens
7
+ - Click "New token"
8
+ - Give it a name (e.g., "anime-dataset-upload")
9
+ - Select "write" permission
10
+ - Copy the token (you'll need it later)
11
+
12
+ ## Upload Steps
13
+
14
+ ### Option 1: Using the Upload Script (Recommended)
15
+
16
+ 1. Open a terminal in the `anime_dataset/huggingface_dataset` directory
17
+ 2. Run the upload script:
18
+ ```bash
19
+ python upload_to_huggingface.py
20
+ ```
21
+ 3. Follow the prompts:
22
+ - Enter your Hugging Face username
23
+ - Enter a dataset name (or press Enter for default)
24
+ - Paste your access token (it will be hidden)
25
+ 4. Wait for the upload to complete
26
+
27
+ ### Option 2: Manual Upload via Web Interface
28
+
29
+ 1. Go to https://huggingface.co/new-dataset
30
+ 2. Enter a dataset name (e.g., "anime-dataset")
31
+ 3. Choose visibility (public/private)
32
+ 4. Create the dataset
33
+ 5. Use the "Files and versions" tab to upload:
34
+ - `README.md`
35
+ - `anime_data.jsonl`
36
+
37
+ ### Option 3: Using Git
38
+
39
+ 1. Create the dataset on Hugging Face first (see Option 2, steps 1-4)
40
+ 2. Clone the repository:
41
+ ```bash
42
+ git clone https://huggingface.co/datasets/YOUR_USERNAME/YOUR_DATASET_NAME
43
+ ```
44
+ 3. Copy your files to the cloned directory
45
+ 4. Commit and push:
46
+ ```bash
47
+ git add .
48
+ git commit -m "Add anime dataset"
49
+ git push
50
+ ```
51
+
52
+ ## Current Dataset Contents
53
+
54
+ Your dataset directory contains:
55
+ - `README.md` - Dataset documentation (dataset card)
56
+ - `anime_data.jsonl` - 50 anime entries
57
+ - `upload_to_huggingface.py` - Upload script (won't be uploaded)
58
+
59
+ ## After Upload
60
+
61
+ 1. Visit your dataset page: `https://huggingface.co/datasets/YOUR_USERNAME/YOUR_DATASET_NAME`
62
+ 2. Check that the dataset preview is working
63
+ 3. Verify the JSONL file is accessible
64
+ 4. Update the citation in README.md with the correct URL
65
+ 5. Add relevant tags for discoverability
66
+
67
+ ## Want More Anime Data?
68
+
69
+ Check out `anime_dataset/SCRAPING_GUIDE.md` for instructions on how to scrape more anime entries. You can easily expand from 50 to 500+ anime!
70
+
71
+ ## Troubleshooting
72
+
73
+ - **Authentication Error**: Make sure your token has write permissions
74
+ - **Repository Exists**: The dataset name might be taken, try a different one
75
+ - **Upload Fails**: Check your internet connection and file sizes
76
+ - **Preview Not Working**: JSONL format should work automatically, but check for valid JSON on each line
77
+
78
+ ## Need Help?
79
+
80
+ - Hugging Face Documentation: https://huggingface.co/docs/hub/datasets
81
+ - Dataset Hub Guide: https://huggingface.co/docs/datasets/upload_dataset
anime_full_data.json ADDED
The diff for this file is too large to render. See raw diff