Transformers\TextFeaturizerTests.cs (23)
81Assert.Equal(data[0].A.ToLower(), string.Join(" ", prediction.OutputTokens));
86Assert.Equal(data[1].A.ToLower(), string.Join(" ", prediction.OutputTokens));
194Assert.Equal(data[0].A, string.Join(" ", prediction.OutputTokens));
199Assert.Equal(data[1].A, string.Join(" ", prediction.OutputTokens));
222Assert.Equal(data[0].A, string.Join(" ", prediction.OutputTokens));
230Assert.Equal(data[1].A, string.Join(" ", prediction.OutputTokens));
278expected1 = data[0].A.ToUpper();
279expected2 = data[1].A.ToUpper();
283expected1 = data[0].A.ToLower();
284expected2 = data[1].A.ToLower();
288expected1 = data[0].A;
289expected2 = data[1].A;
325Assert.Equal(data[0].A, string.Join(" ", prediction1.OutputTokens));
326Assert.Equal(data[1].A, string.Join(" ", prediction2.OutputTokens));
330Assert.Equal(data[0].A.Replace("123 ", "").Replace("425", "").Replace("25", "").Replace("23", ""), string.Join(" ", prediction1.OutputTokens));
331Assert.Equal(data[1].A, string.Join(" ", prediction2.OutputTokens));
362Assert.Equal(data[0].A, string.Join(" ", prediction1.OutputTokens));
363Assert.Equal(data[1].A, string.Join(" ", prediction2.OutputTokens));
367var expected = Regex.Replace(data[0].A, "[,|_|'|\"|;|\\.]", "");
369Assert.Equal(data[1].A, string.Join(" ", prediction2.OutputTokens));
400Assert.Equal(data[0].A, string.Join(" ", prediction1.OutputTokens));
401Assert.Equal(data[1].A, string.Join(" ", prediction2.OutputTokens));
406Assert.Equal(data[1].A, string.Join(" ", prediction2.OutputTokens));