Skip to content

Commit

Permalink
Add Hindi tokenizer to API (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-ter-Doest authored Aug 26, 2023
1 parent bd284d3 commit 4bcf7f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/natural/tokenizers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export class AggressiveTokenizerId extends Tokenizer {
tokenize (text: string): string[]
}

export class AggressiveTokenizerHi extends Tokenizer {
tokenize (text: string): string[]
}

export class AggressiveTokenizer extends Tokenizer {
tokenize (text: string): string[]
}
Expand Down
1 change: 1 addition & 0 deletions lib/natural/tokenizers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports.AggressiveTokenizerNo = require('./aggressive_tokenizer_no')
exports.AggressiveTokenizerSv = require('./aggressive_tokenizer_sv')
exports.AggressiveTokenizerVi = require('./aggressive_tokenizer_vi')
exports.AggressiveTokenizerId = require('./aggressive_tokenizer_id')
exports.AggressiveTokenizerHi = require('./aggressive_tokenizer_hi')
exports.AggressiveTokenizer = require('./aggressive_tokenizer')
exports.CaseTokenizer = require('./tokenizer_case')
exports.RegexpTokenizer = require('./regexp_tokenizer').RegexpTokenizer
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"Porter stemmer",
"Lancaster stemmer",
"tokenizer",
"tokenizer hindi",
"bigram",
"trigram",
"quadgram",
Expand Down

0 comments on commit 4bcf7f4

Please sign in to comment.