File size: 489 Bytes
e4b9a7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project
# SPDX-FileType: SOURCE
# SPDX-License-Identifier: Apache-2.0

import unittest

from pythainlp.soundex.sound import audio_vector, word_approximation


class SoundexTestCaseX(unittest.TestCase):
    def test_word_approximation(self):
        self.assertIsNotNone(word_approximation("รถ", ["รส", "รด", "คน"]))

    def test_audio_vector(self):
        self.assertIsNotNone(audio_vector("คน"))