Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created February 5, 2018 19:34
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 jamesmontemagno/488e2cae4bbb25a5ac25f5f3d54d1833 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/488e2cae4bbb25a5ac25f5f3d54d1833 to your computer and use it in GitHub Desktop.
public class Rootobject
{
public Languagedetection languageDetection { get; set; }
public Keyphrases keyPhrases { get; set; }
public Sentiment sentiment { get; set; }
}
public class Languagedetection
{
public Document[] documents { get; set; }
public object[] errors { get; set; }
}
public class Document
{
public string id { get; set; }
public Detectedlanguage[] detectedLanguages { get; set; }
}
public class Detectedlanguage
{
public string name { get; set; }
public string iso6391Name { get; set; }
public float score { get; set; }
}
public class Keyphrases
{
public Document1[] documents { get; set; }
public object[] errors { get; set; }
}
public class Document1
{
public string id { get; set; }
public string[] keyPhrases { get; set; }
}
public class Sentiment
{
public Document2[] documents { get; set; }
public object[] errors { get; set; }
}
public class Document2
{
public string id { get; set; }
public float score { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment