Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constituency parser not working #36

Open
FishInBed opened this issue Aug 24, 2024 · 0 comments
Open

Constituency parser not working #36

FishInBed opened this issue Aug 24, 2024 · 0 comments

Comments

@FishInBed
Copy link

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='?')])])"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant