thunlp/THULAC-Python

segement tag, not available for python 3.8

martin2lgsb opened this issue · 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.

+1

vikia commented

The same issue

The same issue +1

The same issue

+1