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

Add pythainlp.coref #802

Merged
merged 8 commits into from
Jun 5, 2023
Merged

Add pythainlp.coref #802

merged 8 commits into from
Jun 5, 2023

Conversation

wannaphong
Copy link
Member

@wannaphong wannaphong commented Jun 4, 2023

What does this changes

Add pythainlp.coref for support Thai Coreference resolution

from pythainlp.coref import coreference_resolution
print(coreference_resolution(["Bill Gates ได้รับวัคซีน COVID-19 เข็มแรกแล้ว ระบุ ผมรู้สึกสบายมาก"]))
# output:
# [
# {'text': 'Bill Gates ได้รับวัคซีน COVID-19 เข็มแรกแล้ว ระบุ ผมรู้สึกสบายมาก', 
# 'clusters_string': [['Bill Gates', 'ผม']], 
# 'clusters': [[(0, 10), (50, 52)]]}
# ]

How this fixes it

Description of how the changes fix the issue.

Fixes #800

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Passed code styles and structures
  • Passed code linting checks and unit test

@coveralls
Copy link

coveralls commented Jun 4, 2023

Coverage Status

coverage: 91.562% (+34.6%) from 56.963% when pulling f58d51a on add-coref into 33c5b5a on dev.

@wannaphong wannaphong added this to the 4.1 milestone Jun 4, 2023
@wannaphong wannaphong marked this pull request as ready for review June 4, 2023 11:13
@wannaphong wannaphong changed the title [WIP] Add pythainlp.coref Add pythainlp.coref Jun 4, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wannaphong wannaphong merged commit 3600236 into dev Jun 5, 2023
This was referenced Apr 25, 2023
@wannaphong wannaphong deleted the add-coref branch July 19, 2023 16:54
@wannaphong wannaphong mentioned this pull request Jul 23, 2023
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

Successfully merging this pull request may close these issues.

Add 🪿 Han-Coref to PyThaiNLP
2 participants