Skip to content

Constituency parser not working #36

@FishInBed

Description

@FishInBed

Dear authors/ developers/ editors,

The constituency parser seems to have crashed down for a few days. I have tried to send raw text and segmented tokens into the function get_conparse, but I can only get None as result. Please kindly help checking if there is error happening to the module or if there exist any problem to my code. Thank a lot.

from ckipnlp.container.seg import SegParagraph 
test_tokens = ['暑假','到','了','卻','難','出國','?']
test_pos = ['Nd','VCL','Di','D','VH','VA','QUESTIONCATEGORY']
data = CkipDocument(ws = SegParagraph([test_tokens]), pos = SegParagraph([test_pos]))
pipeline.get_conparse(data)
### Output
ParseParagraph([ParseSentence([ParseClause(clause=None, delim='?')])])
pipeline.get_conparse(CkipDocument(raw="暑假到了卻難出國?"))
### Output
"ParseParagraph([ParseSentence([ParseClause(clause=None, delim='?')])])"

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