Datasets:
Upload folder using huggingface_hub
Browse files- README.md +152 -147
- UPLOAD_INSTRUCTIONS.md +81 -0
- 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 |
-
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
---
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
- `
|
| 48 |
-
- `
|
| 49 |
-
- `
|
| 50 |
-
- `
|
| 51 |
-
- `
|
| 52 |
-
- `
|
| 53 |
-
- `
|
| 54 |
-
- `
|
| 55 |
-
- `
|
| 56 |
-
- `
|
| 57 |
-
- `
|
| 58 |
-
- `
|
| 59 |
-
- `
|
| 60 |
-
- `
|
| 61 |
-
- `
|
| 62 |
-
- `
|
| 63 |
-
- `
|
| 64 |
-
- `
|
| 65 |
-
- `
|
| 66 |
-
- `
|
| 67 |
-
- `
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
```
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
#
|
| 98 |
-
|
| 99 |
-
```
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
###
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|