A command-line REPL for interacting with the IEML dictionary, powered by the IEMLdev library.
- Python 3.6 or higher
- ieml library
- Ollama
Install via pip:
pip install ieml!!! You need to patch version.py for Windows !!!
The dictionary file is stored with colon in filename which is unsupported on Windows.
Copy paste version.py from this repo's patch folder to
..\site-packages\ieml\dictionary
Models used:
nomic-embed-text - gloss_embeddings.npz
gemma3 - classification
Clone this repository and make the script executable:
git clone <your-repo-url>
cd ieml-repl
chmod +x ieml-repl.pyEmbedded IEML dictionary used for candidate selection
gloss_embeddings.npz
gloss_embeddings.json
They can be generated yourself with your model of choice using bake_embeddings.py or downloaded below
https://3to.moe/ieml/embeddings/
Start the REPL:
./ieml-repl.pyYou will see the prompt:
IEML REPL
Type 'help' for commands and 'exit' to quit.
>
parse <TERM>: Validate & show term detailsneighbors <TERM>: List semantic neighboursrelation <TERM1> <TERM2>: Check semantic connectionsearch <QUERY>: Search by English glossexit: Quit the REPL
Example:
> parse A:
Term: [A:]
Index: 2
Layer: 0
English: actual
Neighbours: 221
> neighbors s.o.-s.o.-'
[s.o.-] (thought)
[s.o.-s.o.-'] (mind)
...
Input codes are normalized using Unicode NFKC, and curly quotes (‘ ’) and dashes (– —) are converted to ASCII equivalents
Released under the MIT License. See LICENSE for details.