simple-pos-tagger
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -31,3 +31,3 @@ /* | ||
// Returns an array of lexical categories for word | ||
FunctionWordTagger.prototype.tag_word = function(word) { | ||
SimplePOSTagger.prototype.tag_word = function(word) { | ||
return(this.lexicon[word]); | ||
@@ -37,3 +37,3 @@ }; | ||
// Returns a sentence in which function words are tagged | ||
FunctionWordTagger.prototype.tag_sentence = function(sentence) { | ||
SimplePOSTagger.prototype.tag_sentence = function(sentence) { | ||
var that = this; | ||
@@ -49,3 +49,3 @@ var tagged_sentence = []; | ||
// Returns a chart filled with recognised items | ||
FunctionWordTagger.prototype.tag_sentence_chart = function(sentence) { | ||
SimplePOSTagger.prototype.tag_sentence_chart = function(sentence) { | ||
var that = this; | ||
@@ -81,3 +81,3 @@ | ||
// Parses the list of words; first line is the lexical category | ||
FunctionWordTagger.prototype.read_words = function(text) { | ||
SimplePOSTagger.prototype.read_words = function(text) { | ||
var words = text.split('\n'); | ||
@@ -106,3 +106,3 @@ var category = words.shift(); | ||
// Constructor: reads files with function words and calls the callback with itself | ||
function FunctionWordTagger(config_file, callback) { | ||
function SimplePOSTagger(config_file, callback) { | ||
var that = this; | ||
@@ -109,0 +109,0 @@ |
{ | ||
"name" : "simple-pos-tagger", | ||
"version" : "0.0.18", | ||
"version" : "0.0.19", | ||
"main" : "./lib/SimplePOSTagger.js", | ||
@@ -5,0 +5,0 @@ "author" : { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29142