node: make WordPiece.fromFiles async

This commit is contained in:
Pierric Cistac
2020-03-04 10:29:22 -05:00
parent 35540d2e07
commit fe49512d37
11 changed files with 144 additions and 36 deletions

View File

@ -136,7 +136,7 @@ export class Encoding {
}
/**
* Truncate the current Encoding at the given max_length
* Truncate the current Encoding at the given max length
*
* @param length The maximum length to be kept
* @param [stride=0] The length of the previous first sequence