Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Update code to integrate Chinese parsers/taggers #25

@buptdjd

Description

@buptdjd

I use zpar as a dependency parsing, but I found that python-zpar can't load chinese model successfully. And the error is like “Loading tagger from ../chinese-models/tagger
Loading model...terminate called after throwing an instance of 'std::string'
Aborted”

My code is as:
from six import print_
from zpar import ZPar
chinese_model = "../chinese-models"
with ZPar(chinese_model) as z:
depparser = z.get_depparser()

I download the chinese-models.zip from github archive

I also try the english-models, and python-zpar load english model successfully

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions