THULAC-Python icon indicating copy to clipboard operation
THULAC-Python copied to clipboard

segement tag, not available for python 3.8

Open martin2lgsb opened this issue 4 years ago • 8 comments

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.

martin2lgsb avatar Jul 22 '21 07:07 martin2lgsb

+1

nzy1998 avatar Sep 28 '21 05:09 nzy1998

+1

Pydataman avatar Oct 13 '21 03:10 Pydataman

+1

Vicky-Meng avatar Nov 10 '21 07:11 Vicky-Meng

The same issue

vikia avatar Nov 21 '21 14:11 vikia

The same issue +1

LuoRongLuoRong avatar Nov 24 '21 11:11 LuoRongLuoRong

+1

mianzhang avatar Dec 14 '21 11:12 mianzhang

The same issue

jinghan23 avatar Mar 25 '22 08:03 jinghan23

+1

IvanaXu avatar Sep 25 '22 21:09 IvanaXu