lexicon
                                
                                 lexicon copied to clipboard
                                
                                    lexicon copied to clipboard
                            
                            
                            
                        Translate text between languages with high-accuracy using artificial intelligence.
Dot Lexicon
đ A microservice for quick and local translation using A.I.
This service starts a local webserver used for neural machine translation.
đ Features
| Dot Lexicon | |
|---|---|
| đ | No tracking or telemetry data is collected from you | 
| đ | Always free | 
| âĄď¸ | Fast on low-compute machines | 
| đ | Accurate and keeps your prompt meaningful | 
| đť | Open-source and open for contributions | 
For inference, all models are ran on the CPU. Every model utilized in this service are 8-bit quantized, which results in decreased latency and storage costs.
đŚď¸ Setup
Note: after setup.py is executed, 5GB will be used.
Docker will take ~16GB in total.
# Clone the repository:
git clone https://github.com/dothq/lexicon.git
cd lexicon/
# Build Dockerfile
sudo docker build -t translate .
Run the container with sudo docker run -d -p 3000:3000 translate
The default authorization key is universal
Continue without docker:
Install required dependencies:
# Install requirements
pip3 install -r requirements.txt
cd lexicon/
# Download all the available models:
python3 setup.py
# Launch the server
python3 application.py
Your API is then available for use via POST to /translate (port 3000) using JSON:
Header: Authorization: Bearer TOKEN (default key universal)
{
  "from": "en",
  "to": "es",
  "input": "This is a test translation using Dot Lexicon!"
}
Response will be in JSON.
đ§ Contributing
We accept all positive contributions that affects this repository and service as a whole; we accept trained .argosmodels files via pull request.
Our models:
(These will automatically be installed on setup via latest.json)
| Language | Source -> Target | Target -> Source | 
|---|---|---|
| đłđą | nl -> en | en -> nl | 
| đ´ó §ó ˘ó ˇó Źó łó ż | en -> cy | cy -> en | 
â¤ď¸ Acknowledgements
Argos Translate, which is built on OpenNMT, is widely used in this repository for translation.
đ Licenses
Dot Lexicon is licensed under the MIT license.