Skip to content

Commit ab4108d

Browse files
authored
update sample in README.MD with 0.2 features. (#304)
* update sample with new text loader API. * update with 0.2 stuff.
1 parent a5faca6 commit ab4108d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Along with these ML capabilities this first release of ML.NET also brings the fi
1818

1919
ML.NET runs on Windows, Linux, and macOS - any platform where 64 bit [.NET Core](https://github.com/dotnet/core) or later is available.
2020

21-
The current release is 0.1. Check out the [release notes](docs/release-notes/0.1/release-0.1.md).
21+
The current release is 0.2. Check out the [release notes](docs/release-notes/0.2/release-0.2.md).
2222

2323
First ensure you have installed [.NET Core 2.0](https://www.microsoft.com/net/learn/get-started) or later. ML.NET also works on the .NET Framework. Note that ML.NET currently must run in a 64 bit process.
2424

@@ -66,7 +66,7 @@ Here's an example of code to train a model to predict sentiment from text sample
6666

6767
```C#
6868
var pipeline = new LearningPipeline();
69-
pipeline.Add(new TextLoader<SentimentData>(dataPath, separator: ","));
69+
pipeline.Add(new TextLoader(dataPath).CreateFrom<SentimentData>(separator: ','));
7070
pipeline.Add(new TextFeaturizer("Features", "SentimentText"));
7171
pipeline.Add(new FastTreeBinaryClassifier());
7272
var model = pipeline.Train<SentimentData, SentimentPrediction>();

0 commit comments

Comments
 (0)