
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
github.com/specializedgeneralist/translator
Advanced tools
A simple self-hostable translation service, powered by spaGO.
Some notable features:
This project uses spaGO machine-learning/NLP library behind the hood. At present, BART and Marian models for conditional generation are supported. For more information please refer to spaGO BART Machine Translation README section.
The primary intended usage is to run it as a standalone program. You can get the code and build it like this:
git clone https://github.com/SpecializedGeneralist/translator.git
cd translator
go build -o translator cmd/translator/main.go
The translator program requires a configuration file to run.
Please refer to the file sample-configuration.yaml included with this
project to see an example.
Once you are done with your configuration definition, run:
./translator -c your-config.yaml
The program will first load the configured models from the given path. If a model is not found, the program will automatically attempt to download it from Hugging Face models hub, convert it to a spaGO model, and load it as well.
Eventually, the server will start and will be ready to accept requests. The configured endpoint can be used indifferently for REST (OpenAPI-defined) requests, or as gRPC service.
The folder pkg/api from this project provides the OpenAPI definition file (api.yaml)
and also protobuf and gRPC-related definitions and code.
This project is a Go module, so you can get and use it from your own code:
go get -u github.com/SpecializedGeneralist/translator
For example, a typical scenario is to import and use the included gRPC client:
import "github.com/SpecializedGeneralist/translator/pkg/api"
// ...
client := api.NewApiClient(conn)
// ...
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.