mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
10 lines
323 B
TypeScript
10 lines
323 B
TypeScript
|
import universe from './universe.json'
|
||
|
|
||
|
export const recordUniverseCategories = Object.fromEntries(
|
||
|
universe.categories.flatMap((category) => category.items.map((item) => [item.id, item]))
|
||
|
)
|
||
|
|
||
|
export const recordUniverseResources = Object.fromEntries(
|
||
|
universe.resources.map((resource) => [resource.id, resource])
|
||
|
)
|