BotSharp/BotSharp.NLP/Tokenize/ITokenizer.cs
2018-08-17 15:49:29 -05:00

22 lines
718 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.NLP.Tokenize
{
/// <summary>
/// A tokenizer is a component used for dividing text intotokens.
/// A tokenizer is language specific and takes into account the peculiarities of the language, e.g. dont in English is tokenized as two tokens.
/// </summary>
public interface ITokenizer
{
/// <summary>
/// Tokenize
/// </summary>
/// <param name="sentence">input sentence</param>
/// <param name="options">Options such as: regex expression</param>
/// <returns></returns>
List<Token> Tokenize(string sentence, TokenizationOptions options);
}
}