Skip to content

segement tag, not available for python 3.8 #111

Description

@martin2lgsb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions