How to make your iOS app smarter with sentiment analysis
['Benoit Pasquier']
Benoit Pasquier - Swift, Data and more
import CreateML import AppKit // define the input of dataset as json format let data = try MLDataTable ( contentsOf : URL ( fileURLWithPath : "/Users/benoit/Desktop/clothing-review.json" )) // split data, 80% to train, 20% to test let ( trainingData , testingData ) = data . Parsing JSON records from /Users/benoit/Desktop/clothing-review.json Successfully parsed 23486 elements from the JSON file /Users/benoit/Desktop/clothing-review.json Tokenizing data and extracting features 10% complete 20% complete 30% complete [ ...