Skip to content

Conversation

wannaphong
Copy link
Member

@wannaphong wannaphong commented Jul 22, 2023

This function convert Thai text (with abbreviation) to full text by KhamYo https://github.com/wannaphong/KhamYo.

from pythainlp.util import abbreviation_to_full_text

text = "รร.ของเราน่าอยู่"

print(abbreviation_to_full_text(text))
# output: [
# ('โรงเรียนของเราน่าอยู่', tensor(0.3734)), 
# ('โรงแรมของเราน่าอยู่', tensor(0.2438))
# ]

This function convert Thai text (with abbreviation) to full text.
@wannaphong wannaphong marked this pull request as ready for review July 22, 2023 15:18
@sonarqubecloud
Copy link

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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wannaphong wannaphong added this to the 4.1 milestone Jul 22, 2023
@wannaphong wannaphong added the enhancement enhance functionalities label Jul 22, 2023
@wannaphong wannaphong merged commit 4d95830 into dev Jul 23, 2023
@wannaphong wannaphong mentioned this pull request Jul 23, 2023
@wannaphong wannaphong deleted the add-abbreviation_to_full_text branch December 4, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhance functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant