added a scorer
This commit is contained in:
parent
502f9dc1a2
commit
9bb6b18d0c
@ -238,6 +238,8 @@ rss_braider.processFeed('simple_test_feed', 'json', function(err, data) {
|
||||
|
||||
console.log("The file was saved!");
|
||||
});
|
||||
|
||||
saveCorpus();
|
||||
});
|
||||
|
||||
function scoreEntry(s) {
|
||||
@ -326,10 +328,11 @@ function getNoneStopWords(sentence) {
|
||||
|
||||
function loadCorpus() {
|
||||
let fileName = ".\\dist\\corpus.json";
|
||||
console.log(fileName);
|
||||
console.log(`Loading ${fileName}`);
|
||||
|
||||
jsonfile.readFile(fileName, function(err, obj) {
|
||||
corpus = obj;
|
||||
console.log('Corpus loaded');
|
||||
doFeeds();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user