using System;using System.Collections.Generic;using System.Text;using Tensorflow.Text.Tokenizers;namespace Tensorflow.Text{public class TextInterface{public ITokenizer WhitespaceTokenizer()=> new WhitespaceTokenizer();public Tensor wordshape(Tensor input, WordShape pattern, string name = null)=> TextOps.wordshape(input, pattern, name: name);/// <summary>/// Create a tensor of n-grams based on the input data `data`./// </summary>/// <param name="input"></param>/// <param name="width"></param>/// <param name="axis"></param>/// <param name="reduction_type"></param>/// <param name="string_separator"></param>/// <param name="name"></param>/// <returns></returns>public static Tensor ngrams(Tensor input, int width,int axis = -1,Reduction reduction_type = Reduction.None,string string_separator = " ",string name = null)=> TextOps.ngrams(input, width,axis: axis,reduction_type: reduction_type,string_separator: string_separator,name: name);}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。