We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3453c87 commit f733cedCopy full SHA for f733ced
tokenizers.js
@@ -1,6 +1,7 @@
1
var tibetan =function(s) {
2
//continuous tsheg grouped into same token
3
//shad and space grouped into same token
4
+ if (!s) return {tokens:[],offsets:[]};
5
var offset=0;
6
var tokens=[],offsets=[];
7
s=s.replace(/\r\n/g,'\n').replace(/\r/g,'\n');
@@ -32,6 +33,7 @@ var isSpace=function(c) {
32
33
var isCJK =function(c) {return ((c>=0x3000 && c<=0x9FFF)
34
|| (c>=0xD800 && c<0xDC00) || (c>=0xFF00) ) ;}
35
var simple1=function(s) {
36
37
38
39
0 commit comments