Tweeted twitter.com/StackMma/status/867965341359521792
3 added 4 characters in body
source | link

Currently I have created a simple classifier to classify sentiment from a string of text (or a tweet). The code is very basic and looks something like this:

data1 = SemanticImport[file]; c = Classify[data1[[2 ;;, 2]] -> data1[[2 ;;, 1]]] result = c[testData[[2]]] {'Happy'}

But I'd like to use it in my own application which has been written in C#. Is there a way to take this classifier and use it outside of the notebook either by (1) exporting code that created the classifier or (2) creating a Cloud API to send a JSON file to receive the intended request.

Currently I have created a simple classifier to classify sentiment from a string of text (or a tweet). The code is very basic and looks something like this:

data1 = SemanticImport[file]; c = Classify[data1[[2 ;;, 2]] -> data1[[2 ;;, 1]]] result = c[testData[[2]]] {'Happy'}

But I'd like to use it in my own application which has been written in C#. Is there a way to take this classifier and use it outside of the notebook either by (1) exporting code that created the classifier or creating a Cloud API to send a JSON file to receive the intended request.

Currently I have created a simple classifier to classify sentiment from a string of text (or a tweet). The code is very basic and looks something like this:

data1 = SemanticImport[file]; c = Classify[data1[[2 ;;, 2]] -> data1[[2 ;;, 1]]] result = c[testData[[2]]] {'Happy'}

But I'd like to use it in my own application which has been written in C#. Is there a way to take this classifier and use it outside of the notebook either by (1) exporting code that created the classifier or (2) creating a Cloud API to send a JSON file to receive the intended request.

2 edited title
| link

How do I generate code from a Exporting Classify model for other use cases?Models

1
source | link

How do I generate code from a Classify model for other use cases?

Currently I have created a simple classifier to classify sentiment from a string of text (or a tweet). The code is very basic and looks something like this:

data1 = SemanticImport[file]; c = Classify[data1[[2 ;;, 2]] -> data1[[2 ;;, 1]]] result = c[testData[[2]]] {'Happy'}

But I'd like to use it in my own application which has been written in C#. Is there a way to take this classifier and use it outside of the notebook either by (1) exporting code that created the classifier or creating a Cloud API to send a JSON file to receive the intended request.