Skip to content

Commit ee11634

Browse files
authored
Update keyboard.py
1 parent 4b6399a commit ee11634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythainlp/util/keyboard.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Correct text in one language that is incorrectly-typed
4-
with a keyboard layout in another language.
3+
Functions related to keyboard layout.
54
"""
5+
66
EN_TH_KEYB_PAIRS = {
77
"Z": "(",
88
"z": "ผ",
@@ -192,7 +192,7 @@ def thai_keyboard_dist(c1: str, c2: str, shift_dist: float = 0.0) -> float:
192192
193193
from pythainlp.util import thai_keyboard_dist
194194
thai_keyboard_dist("ด", "ะ")
195-
# 1.4142135623730951
195+
# output: 1.4142135623730951
196196
thai_keyboard_dist("ฟ", "ฤ")
197197
# output: 0.0
198198
thai_keyboard_dist("ฟ", "ห")

0 commit comments

Comments
 (0)