|
| 1 | +{ |
| 2 | + "title": "Introduction to Transformers.js", |
| 3 | + "description": "Welcome to a new series all about working with machine learning models in JavaScript in the browser using the Transformers.js library! In this introduction, I cover what Transformers.js is, how to load it into a p5.js sketch, explain the pipeline API, and demonstrate sentiment analysis and language detection examples.", |
| 4 | + "videoNumber": "1", |
| 5 | + "videoId": "KR61bXsPlLU", |
| 6 | + "nebulaSlug": "codingtrain-what-is-transformersjs", |
| 7 | + "date": "2025-10-24", |
| 8 | + "languages": ["JavaScript", "p5.js", "Transformers.js"], |
| 9 | + "topics": [ |
| 10 | + "machine learning", |
| 11 | + "Transformers.js", |
| 12 | + "Hugging Face", |
| 13 | + "sentiment analysis", |
| 14 | + "language detection", |
| 15 | + "natural language processing", |
| 16 | + "pipeline API", |
| 17 | + "async/await", |
| 18 | + "ES6 modules" |
| 19 | + ], |
| 20 | + "canContribute": true, |
| 21 | + "timestamps": [ |
| 22 | + { "time": "0:00", "title": "Welcome!" }, |
| 23 | + { "time": "2:01", "title": "Why JavaScript and not Python?" }, |
| 24 | + { "time": "3:06", "title": "What is Hugging Face?" }, |
| 25 | + { "time": "4:03", "title": "Transformers.js Documentation" }, |
| 26 | + { "time": "4:18", "title": "Pipeline API" }, |
| 27 | + { "time": "5:05", "title": "import syntax and ES6 modules" }, |
| 28 | + { "time": "8:38", "title": "Object Destructuring" }, |
| 29 | + { "time": "11:33", "title": "Creating a Pipeline" }, |
| 30 | + { "time": "13:18", "title": "Sentiment Analysis Example" }, |
| 31 | + { "time": "18:56", "title": "Tasks and Models on Hugging Face" }, |
| 32 | + { "time": "20:20", "title": "Language Detection Example" }, |
| 33 | + { "time": "22:29", "title": "Device: WebGPU, CPU and more" }, |
| 34 | + { "time": "24:32", "title": "Data Types and Quantization" }, |
| 35 | + { "time": "28:00", "title": "See you next time!" } |
| 36 | + ], |
| 37 | + "codeExamples": [ |
| 38 | + { |
| 39 | + "title": "Sentiment Analysis", |
| 40 | + "description": "Sentiment analysis with color-coded results using Transformers.js pipeline.", |
| 41 | + "image": "sentiment.png", |
| 42 | + "urls": { |
| 43 | + "p5": "https://editor.p5js.org/codingtrain/sketches/JaXqVSHxM" |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "title": "Language Detection", |
| 48 | + "description": "Detect the language of input text using a text classification model.", |
| 49 | + "image": "language.png", |
| 50 | + "urls": { |
| 51 | + "p5": "https://editor.p5js.org/codingtrain/sketches/VmS9V6-0o" |
| 52 | + } |
| 53 | + } |
| 54 | + ], |
| 55 | + "groupLinks": [ |
| 56 | + { |
| 57 | + "title": "References", |
| 58 | + "links": [ |
| 59 | + { |
| 60 | + "icon": "π»", |
| 61 | + "title": "Transformers.js Documentation", |
| 62 | + "url": "https://huggingface.co/docs/transformers.js", |
| 63 | + "description": "Official documentation for the Transformers.js library." |
| 64 | + }, |
| 65 | + { |
| 66 | + "icon": "π€", |
| 67 | + "title": "Hugging Face", |
| 68 | + "url": "https://huggingface.co/", |
| 69 | + "description": "Platform for sharing machine learning models, datasets, and spaces." |
| 70 | + }, |
| 71 | + { |
| 72 | + "icon": "π€", |
| 73 | + "title": "Hugging Face Models", |
| 74 | + "url": "https://huggingface.co/models?library=transformers.js", |
| 75 | + "description": "Browse all models compatible with Transformers.js." |
| 76 | + }, |
| 77 | + { |
| 78 | + "icon": "π€", |
| 79 | + "title": "Xenova on Hugging Face", |
| 80 | + "url": "https://huggingface.co/Xenova", |
| 81 | + "description": "Creator of Transformers.js." |
| 82 | + }, |
| 83 | + { |
| 84 | + "icon": "π€", |
| 85 | + "title": "Whisper Web", |
| 86 | + "url": "https://huggingface.co/spaces/Xenova/whisper-web", |
| 87 | + "description": "Speech recognition demo using Whisper model in the browser." |
| 88 | + }, |
| 89 | + { |
| 90 | + "icon": "π»", |
| 91 | + "title": "p5.js 2.0 reference", |
| 92 | + "url": "https://beta.p5js.org/", |
| 93 | + "description": "p5.js version 2.0 with support for async/await." |
| 94 | + }, |
| 95 | + { |
| 96 | + "icon": "π", |
| 97 | + "title": "ES6 Modules", |
| 98 | + "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules", |
| 99 | + "description": "MDN documentation on JavaScript modules and import/export." |
| 100 | + }, |
| 101 | + { |
| 102 | + "icon": "π", |
| 103 | + "title": "Quantization", |
| 104 | + "url": "https://huggingface.co/docs/optimum/concept_guides/quantization", |
| 105 | + "description": "Understanding model quantization and precision levels." |
| 106 | + } |
| 107 | + ] |
| 108 | + }, |
| 109 | + { |
| 110 | + "title": "Videos", |
| 111 | + "links": [ |
| 112 | + { |
| 113 | + "icon": "π", |
| 114 | + "title": "ml5.js Beginner's Guide", |
| 115 | + "url": "/tracks/ml5js-beginners-guide", |
| 116 | + "description": "My series on machine learning with ml5.js and TensorFlow.js." |
| 117 | + }, |
| 118 | + { |
| 119 | + "icon": "π", |
| 120 | + "title": "p5.js 2.0: async and await", |
| 121 | + "url": "/tracks/p5js-2.0/p5js-2.0/async-await", |
| 122 | + "description": "Learn about asynchronous programming in p5.js 2.0." |
| 123 | + } |
| 124 | + ] |
| 125 | + } |
| 126 | + ], |
| 127 | + "credits": [ |
| 128 | + { "title": "Editing", "name": "Mathieu Blanchette" }, |
| 129 | + { "title": "Animations", "name": "Jason Heglund" } |
| 130 | + ] |
| 131 | +} |
0 commit comments