Skip to content

Instantly share code, notes, and snippets.

@jamesonthecrow
Last active November 11, 2018 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesonthecrow/75052cf6a8acd6ca473307c5fef96ae7 to your computer and use it in GitHub Desktop.
Save jamesonthecrow/75052cf6a8acd6ca473307c5fef96ae7 to your computer and use it in GitHub Desktop.
Incorporate the subreddit suggester into your iOS app.
// 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