BotSharp/BotSharp.NLP/Featuring/IFeatureExtractor.cs
2018-10-03 16:49:40 -05:00

41 lines
913 B
C#

using Bigtree.Algorithm.Matrix;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.NLP.Featuring
{
public interface IFeatureExtractor
{
/// <summary>
/// Feature dimension size
/// </summary>
int Dimension { get; set; }
/// <summary>
/// The whole corpus
/// </summary>
List<Sentence> Sentences { get; set; }
/// <summary>
/// Feature names
/// </summary>
List<String> Features { get; set; }
/// <summary>
/// All words and frequency
/// </summary>
List<Tuple<String, int>> Dictionary { get; set; }
/// <summary>
/// Vectorize sentence
/// </summary>
void Vectorize(List<string> features);
/// <summary>
/// Array shape
/// </summary>
Shape Shape { get; set; }
}
}