Skip to content

docs: clarify output of tone_detector #918

@kristw

Description

@kristw

Description

อยากให้ช่วยอธิบาย output ของ function tone_detector ใน util เพิ่มเติมครับ
ผมไม่คุ้นเคยกับตัวย่อพวกนี้มากนักเลยไม่แน่ใจว่า l, m, h, r, f คือเสียงอะไรบ้าง

Expected results

updated docstring

Current results

def tone_detector(syllable: str) -> str:
    """
    Thai tone detector for syllables

    :param str syllable: Thai syllable
    :return: syllable's tone (l, m, h, r, f or empty if it cannot be detected)
    :rtype: str

Steps to reproduce

open the code

PyThaiNLP version

current

Python version

3.8

Operating system and version

OS X Sonoma 14.5

More info

No response

Possible solution

No response

Files

No response

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