Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/z/a/zapian-0.4.0/zapian/utils.py   zapian(Download)
from datetime import datetime
from time import mktime
from cjksplitter import CJKSplitter
 
LIST_TYPES = (set, list, tuple)
def clean_splitter(value, is_query=False):
    """ 分词 """
    splitter = CJKSplitter()
    if is_query:
        return " ".join(splitter.process([value], 1))

src/z/a/zapian-HEAD/zapian/utils.py   zapian(Download)
from datetime import datetime
from time import mktime
from cjksplitter import CJKSplitter
 
LIST_TYPES = (set, list, tuple)
def clean_splitter(value, is_query=False):
    """ 分词 """
    splitter = CJKSplitter()
    if is_query:
        return " ".join(splitter.process([value], 1))