Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is SentimentData defined? #77

Closed
zwcloud opened this issue May 8, 2018 · 1 comment
Closed

Where is SentimentData defined? #77

zwcloud opened this issue May 8, 2018 · 1 comment

Comments

@zwcloud
Copy link

zwcloud commented May 8, 2018

System information

  • OS version/distro: Win10
  • .NET Version (eg., dotnet --info): 2.1.200

Issue

  • What did you do?
    I'm try the examples in the readme.

  • What happened?

I installed Microsoft.ML package to a newly created .Net core console app.

And in the Program.cs file,

using System;
using Microsoft.ML;
using Microsoft.ML.Trainers;
using Microsoft.ML.Transforms;

namespace MLTry
{
    class Program
    {
        static void Main(string[] args)
        {
            var pipeline = new LearningPipeline();
            pipeline.Add(new TextLoader<SentimentData>(dataPath, separator: ","));
//...

It doesn't compile because SentimentData is not defined. And I searched for SentimentData in the repo but found nothing related.

  • What did you expect?
    Found the type SentimentData.
@nevoroman
Copy link

nevoroman commented May 8, 2018

SentimentData is just an input dataset class. Create and use a class that fits your data.
You can find the full tutorial for this code sample at docs.microsoft.com (https://docs.microsoft.com/dotnet/machine-learning/tutorials/sentiment-analysis)

@zwcloud zwcloud closed this as completed May 8, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants