BotSharp/BotSharp.NLP/Tokenize/ITokenizer.cs
2018-08-15 17:37:23 -05:00

27 lines
809 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>
/// Language
/// </summary>
SupportedLanguage Lang { get; set; }
/// <summary>
/// Tokenize
/// </summary>
/// <param name="text">input</param>
/// <param name="options">Options such as: regex expression</param>
/// <returns></returns>
Token[] Tokenize(string text, TokenizationOptions options);
}
}