To use the WordSearch program, follow these steps:
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
-
Import the WordSearch module in your Python script:
from WordSearch import WordSearch
-
Create an instance of the WordSearch class:
word_search = WordSearch()
-
Use the
search
method to search for Chinese rare characters:result = word_search.search("笠鳥")
The
search
method returns the corresponding rare character for the input word. -
Repeat step 4 for any other words you want to search.
-
Finally, don't forget to close the WordSearch instance when you're done:
word_search.close()
That's it! You can now easily search for Chinese rare characters using the WordSearch program.
This program is licensed under the MIT License.