Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shauheen authored Feb 7, 2019
1 parent 3b1358e commit 26755ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Here's an example of code to train a model to predict sentiment from text sample

```C#
var mlContext = new MLContext();
var reader = mlContext.Data.TextReader(new TextLoader.Arguments
var reader = mlContext.Data.CreateTextLoader(new TextLoader.Arguments
{
Column = new[] {
new TextLoader.Column("SentimentText", DataKind.Text, 1),
Expand All @@ -79,7 +79,7 @@ var reader = mlContext.Data.TextReader(new TextLoader.Arguments
Separator = ","
});
var data = reader.Read(dataPath);
var learningPipeline = mlContext.Transforms.Text.FeaturizeText("SentimentText", "Features")
var learningPipeline = mlContext.Transforms.Text.FeaturizeText("Features", "SentimentText")
.Append(mlContext.BinaryClassification.Trainers.FastTree());
var model = learningPipeline.Fit(data);

Expand Down

0 comments on commit 26755ec

Please sign in to comment.