Ejemplo n.º 1
0
 public void NlpNerExtractAnnotationsGetAsyncTest()
 {
     NerExtractAnnotationsResponse nerExtractAnnotationsResponse = new NerExtractAnnotationsResponse();
     Task.Run(async () =>
     {
         nerExtractAnnotationsResponse = await nerApi.NlpNerExtractAnnotationsGetAsync("../../test.txt", null, "en", null, null);
     }).Wait();
     Assert.IsNotNull(nerExtractAnnotationsResponse.Annotations);
 }
Ejemplo n.º 2
0
 public void NlpNerExtractAnnotationsGetTest()
 {
     NerExtractAnnotationsResponse nerExtractAnnotationsResponse = new NerExtractAnnotationsResponse();
     nerExtractAnnotationsResponse = nerApi.NlpNerExtractAnnotationsGet(null, "This is a test", "en", null, null);
     Assert.IsNotNull(nerExtractAnnotationsResponse.Annotations);
 }