You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Semantic/Contracts/ILexProvider.cs

47 lines
1.9 KiB

6 years ago
using System.Collections.Generic;
namespace ZeroLevel.Services.Semantic
{
public interface ILexProvider
{
/// <summary>
6 years ago
/// Extract tokens from text as is
6 years ago
/// </summary>
6 years ago
/// <returns>Spisok tokenov</returns>
6 years ago
IEnumerable<LexToken> ExtractLexTokens(string text);
5 years ago
IEnumerable<LexToken> ExtractLexTokens(string[] words);
6 years ago
/// <summary>
6 years ago
/// Selecting unique tokens from text
6 years ago
/// </summary>
6 years ago
/// <returns>Tokens</returns>
6 years ago
IEnumerable<LexToken> ExtractUniqueLexTokens(string text);
5 years ago
IEnumerable<LexToken> ExtractUniqueLexTokens(string[] words);
6 years ago
/// <summary>
6 years ago
/// Allocation of unique tokens from text with drop of stop words
6 years ago
/// </summary>
6 years ago
/// <returns>Tokens</returns>
6 years ago
IEnumerable<LexToken> ExtractUniqueLexTokensWithoutStopWords(string text);
5 years ago
IEnumerable<LexToken> ExtractUniqueLexTokensWithoutStopWords(string[] words);
6 years ago
/// <summary>
6 years ago
/// Search for tokens in the text corresponding to the specified words (full-text search)
6 years ago
/// </summary>
6 years ago
/// <param name="text">Search text</param>
/// <param name="words">Search words</param>
/// <returns>Dictionary, where key is a word, value is a list of matching tokens found for it</returns>
6 years ago
IDictionary<string, IEnumerable<LexToken>> SearchLexTokensByWords(string text, string[] words);
6 years ago
/// <summary>
6 years ago
/// Search for tokens in the text corresponding to the specified phrases (full-text search)
6 years ago
/// </summary>
6 years ago
/// <param name="text">Search text</param>
/// <param name="phrases">Search phrases</param>
/// <returns>The dictionary, where the key is a phrase, a value is a list of token arrays corresponding to it</returns>
6 years ago
IDictionary<string, IEnumerable<LexToken[]>> SearchLexTokensByPhrases(string text, string[] phrases);
}
}

Powered by TurnKey Linux.