Update README.md
Browse files
README.md
CHANGED
@@ -4,21 +4,21 @@ license: mit
|
|
4 |
|
5 |
A dataset consisting of Pokémon embeddings: text embeddings encoded from large amount of Pokémon metadata using [nomic-ai/nomic-embed-text-v1.5](https://huggingface.co/nomic-ai/nomic-embed-text-v1.5), and image embeddings encoded from the official Pokémon artwork using [nomic-ai/nomic-embed-vision-v1.5](https://huggingface.co/nomic-ai/nomic-embed-vision-v1.5).
|
6 |
|
7 |
-
No other metadata is present to avoid invoking the Nintendo Ninjas. To see how to retrieve additional metadata, see the "Get More Metadata" section.
|
8 |
|
9 |
## Fields
|
10 |
|
11 |
-
- `id`: Pokémon National Dex ID, which
|
12 |
-
- `text_embedding`: 768D embedding of Pokémon
|
13 |
- `image_embedding`: 768D embedding of Pokémon images.
|
14 |
- `umap_2d_x`: x-coordinate value of a UMAP projection to 2D by concatenating the embeddings.
|
15 |
- `umap_2d_y`: y-coordinate value of a UMAP projection to 2D by concatenating the embeddings.
|
16 |
|
17 |
## Get More Metadata
|
18 |
|
19 |
-
You can retrieve more metadata using PokeAPI. An example:
|
20 |
|
21 |
-
```
|
22 |
import requests
|
23 |
|
24 |
graphql_query = """
|
@@ -39,5 +39,9 @@ r = requests.post(
|
|
39 |
|
40 |
pokemon = r.json()["data"]["pokemon_v2_pokemon"]
|
41 |
pokemon[0:10]
|
42 |
-
```
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
A dataset consisting of Pokémon embeddings: text embeddings encoded from large amount of Pokémon metadata using [nomic-ai/nomic-embed-text-v1.5](https://huggingface.co/nomic-ai/nomic-embed-text-v1.5), and image embeddings encoded from the official Pokémon artwork using [nomic-ai/nomic-embed-vision-v1.5](https://huggingface.co/nomic-ai/nomic-embed-vision-v1.5).
|
6 |
|
7 |
+
No other metadata besides the Pokémon ID is present to avoid invoking the Nintendo Ninjas. To see how to retrieve additional metadata, see the "Get More Metadata" section.
|
8 |
|
9 |
## Fields
|
10 |
|
11 |
+
- `id`: Pokémon National Dex ID, which maps to PokeAPI. "Special" Pokemon will have an id > 10000.
|
12 |
+
- `text_embedding`: 768D embedding of Pokémon metadata.
|
13 |
- `image_embedding`: 768D embedding of Pokémon images.
|
14 |
- `umap_2d_x`: x-coordinate value of a UMAP projection to 2D by concatenating the embeddings.
|
15 |
- `umap_2d_y`: y-coordinate value of a UMAP projection to 2D by concatenating the embeddings.
|
16 |
|
17 |
## Get More Metadata
|
18 |
|
19 |
+
You can retrieve more metadata using PokeAPI. An example to get the id and name of all Pokémon:
|
20 |
|
21 |
+
```python
|
22 |
import requests
|
23 |
|
24 |
graphql_query = """
|
|
|
39 |
|
40 |
pokemon = r.json()["data"]["pokemon_v2_pokemon"]
|
41 |
pokemon[0:10]
|
|
|
42 |
|
43 |
+
# [{'id': 1, 'name': 'bulbasaur'},
|
44 |
+
# {'id': 2, 'name': 'ivysaur'},
|
45 |
+
# {'id': 3, 'name': 'venusaur'},
|
46 |
+
# ...
|
47 |
+
```
|