From the course: Machine Learning in Mobile Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Core ML: Create Natural Language model

Core ML: Create Natural Language model - Xamarin Tutorial

From the course: Machine Learning in Mobile Applications

Start my 1-month free trial

Core ML: Create Natural Language model

- [Instructor] Creating a core ML model is something we can now do in Xcode. We can do this either using a JSON file or a CSV file. If we look at our exercise files directory, and under CoreMLCollateral we see there's a file called natural language trainer, and I'm going to click on that, right click, and go copy, and paste that onto our desktop. I'm going to close this up, and if we look at this file, it's a simple JSON array with two values, text and label, so the text is actually the utterance, and the label is the classification we want to give it or the intent. So now we're gonnna go into Xcode, and we can do this in a playground, so I'm going to get started with a new playground. And we want to make sure that we have MacOS selected as the playground type, and we'll create a blank playground. We'll hit next. For the name of the playground, we're going to call it Natural Language. And press create. And I'm going to delete what's already here, and put in import and import Create ML…

Contents