public Car(ICarFactory factory) { _engine = factory.MakeEngine(); _corpus = factory.MakeCorpus(); Console.WriteLine("Honda created"); }
public Analyzer(IDictionary<string, uint> pos, IDictionary<string, uint> neg, IDictionary<string, uint> neu, ICorpus cor) { corpus = cor; positive = pos; negative = neg; neutral = neu; }
public Crawler(ICorpus corpus) { timer = new Timer(30000); timer.AutoReset = true; timer.Elapsed += execute; _corpus = corpus; init(); //while (res.Status != TaskStatus.RanToCompletion) ; }
/// <summary> /// Initializes a new instance of the <see cref="Ranker"/> class. /// </summary> /// <param name="query">A mapping of each query term to the frequency in the query document.</param> public Ranker(ICorpus corpus, Tuple <int, List <ITermDocument> > query) { if (query == null || corpus == null) { throw new ArgumentNullException(); } this._queryRank = new Dictionary <string, double>(); _corpus = corpus; _documentRank = new Dictionary <string, Dictionary <string, double> >(); _documents = new HashSet <string>(); RankList = new List <KeyValuePair <String, double> >(); CompTF_IDF(query); Rank(); }
public SpellCorrect(ICorpus corpus) { this.corpus = corpus; }
public IAnnotatedCorpus Analyse(ICorpus corpus) { throw new NotImplementedException(); }
/// <summary> /// Initializes a new instance of the <see cref="Indexer"/> class. /// </summary> /// <param name="corpus">The corpus. Instantiates the corpus</param> public Indexer(ICorpus corpus) { _corpus = corpus; _tokenizer = new Tokenizer(corpus.StopWords); _repo = _corpus.GetRepository().Result; }
public Querier(ICorpus corpus) { _corpus = corpus; _tokenizer = new Tokenizer(corpus.StopWords); }
public IAnnotatedCorpus Analyse(ICorpus corpus) { Analyzer analyzer = new Analyzer(positive, negative, neutral, corpus); return analyzer.Result(); }
public WordCountKernel(ICorpus corpus) { _corpus = corpus; }