thunlp / THULAC-Python

An Efficient Lexical Analyzer for Chinese
MIT License
2.02k stars 336 forks source link

segement tag, not available for python 3.8 #111

Open martin2lgsb opened 3 years ago

martin2lgsb commented 3 years ago

when I try thulac.cut($sentence), error jump out:

    tmp, tagged = self.__tagging_decoder.segmentTag(raw, __poc_cands)
    start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

it turns out that function time.clock() has been removed in python 3.8, after it's deprecated, python 3.3 provide time.perf_counter() a time.process_time() instead.

nzy1998 commented 3 years ago

+1

Pydataman commented 3 years ago

+1

Vicky-Meng commented 2 years ago

+1

vikia commented 2 years ago

The same issue

LuoRongLuoRong commented 2 years ago

The same issue +1

mianzhang commented 2 years ago

+1

jinghan23 commented 2 years ago

The same issue

IvanaXu commented 2 years ago

+1