BotSharp/BotSharp.NLP/Tag/ITagger.cs

25 lines
831 B
C#
Raw Normal View History

2018-08-16 22:27:50 +00:00
using BotSharp.NLP.Tokenize;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.NLP.Tag
{
/// <summary>
/// Part-Of-Speech tagging (or POS tagging, for short) is one of the main components of almost any NLP analysis.
/// The task of POS-tagging simply implies labelling words with their appropriate Part-Of-Speech (Noun, Verb, Adjective, Adverb, Pronoun, …).
/// </summary>
public interface ITagger
{
/// <summary>
///
/// </summary>
/// <param name="sentences">A tagged corpus. Each item should be a list of tokens.</param>
/// <param name="options"></param>
/// <returns></returns>
void Train(List<Sentence> sentences, TagOptions options);
void Tag(Sentence sentence, TagOptions options);
}
}