Last active
November 11, 2018 03:37
-
-
Save jamesonthecrow/75052cf6a8acd6ca473307c5fef96ae7 to your computer and use it in GitHub Desktop.
Incorporate the subreddit suggester into your iOS app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Drag your subredditClassifier.mlmodel to the Xcode project navigator. | |
// Use the model with the following code. | |
import NaturalLanguage | |
let subredditPredictor = try NLModel(mlModel: subredditClassifier().model) | |
subredditPredictor.predictedLabel(for: "TIL you can use Core ML to suggest subreddits to users.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment