Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Mar 17, 2023
1 parent 6b00885 commit 1f9fcce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pythainlp/khavee/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from typing import List
from typing import List, Union
from pythainlp.tokenize import subword_tokenize


Expand Down Expand Up @@ -265,14 +265,14 @@ def check_sumpus(self, word1: str,word2: str) -> bool:
else:
return False

def check_klon(self, text: str,k_type: int=8) -> str:
def check_klon(self, text: str,k_type: int=8) -> Union[List[str], str]:
"""
Check the suitability of the poem according to Thai principles.
:param str text: Thai poem
:param int k_type: Type of Thai poem
:return: the check of the suitability of the poem according to Thai principles.
:rtype: str
:rtype: Union[List[str], str]
:Example:
::
Expand Down

0 comments on commit 1f9fcce

Please sign in to comment.