You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

TokenizerTest.cs 561 B

123456789101112131415161718192021
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using static Tensorflow.Binding;
  6. using static Tensorflow.TextApi;
  7. namespace TensorFlowNET.UnitTest.Text
  8. {
  9. [TestClass]
  10. public class TokenizerTest
  11. {
  12. [TestMethod, Ignore]
  13. public void Tokenize()
  14. {
  15. var docs = tf.constant(new[] { "Everything not saved will be lost." });
  16. var tokenizer = text.WhitespaceTokenizer();
  17. var tokens = tokenizer.tokenize(docs);
  18. }
  19. }
  20. }