Skip to content

Commit

Permalink
demos program
Browse files Browse the repository at this point in the history
  • Loading branch information
kariminf committed Jan 25, 2023
1 parent db87ec3 commit cb51b41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/_jslml.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class BeamMEMM {
let j = 0; //since the first one is the max
while(i > 0){
next_e = this.BV[i][j];
result.unshift(this.maxent.get_class(next_e[0][0]));
result.unshift(next_e[0][0]);
j = next_e[0][1];
i--;
}
Expand All @@ -333,4 +333,4 @@ class BeamMEMM {
}


export {Activation, LayerNormalization, Perceptron, TagEncoder, BeamMEMM, JslBERTBlock, JslBERT};
export {Activation, LayerNormalization, Perceptron, TagEncoder, BeamMEMM, JslBERTBlock, JslBERT};
2 changes: 1 addition & 1 deletion src/morpho.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class Morpho {
* @final
* @param {String} verb the word to be conjugated
* @param {Object} _opts options for tense, case, voice, aspect, person, number, gender, mood, and other
* @param {Sring} _form
* @param {String} _form
* @return {String} Conjugated verb
*/
static conj(verb, _opts, _form){
Expand Down
2 changes: 1 addition & 1 deletion src/sem.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Sem {
* @final
* @static
* @param {string} word a word
* @param {string[]} _opts a list of options
* @param {object} _opts a map of options
* @return {float[]} embedding of the word
*/
static word_embedding(word, _opts){
Expand Down

0 comments on commit cb51b41

Please sign in to comment.