segement tag, not available for python 3.8
martin2lgsb opened this issue · 8 comments
martin2lgsb commented
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
+1
Pydataman commented
+1
Vicky-Meng commented
+1
vikia commented
The same issue
LuoRongLuoRong commented
The same issue +1
mianzhang commented
+1
jinghan23 commented
The same issue
IvanaXu commented
+1