chen0040/java-text-embedding is a public repo on GitHub by chen0040. Word embedding in Java. It declares the MIT license on GitHub. It is written mainly in Java, has 8 stars and last changed on 2021-03-15. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
java-word-embedding
Word embedding in Java
The current project provides GloVe word embedding that developer can directly use within their project.
The sample codes below shows how to use
GloVeModel to create GloVe word embedding of different
dimensions (e.g., 50, 100, 200, 300)
importorg.slf4j.Logger;
importorg.slf4j.LoggerFactory;
importcom.github.chen0040.embeddings.GloVeModel;
publicclassGloVeModelDemo {
privatestaticfinalLoggerlogger = LoggerFactory.getLogger(GloVeModelDemo.class);
publicstaticvoidmain(String[] args) {
GloVeModelmodel = newGloVeModel();
model.load100();
logger.info("word2em size: {}", model.size());
logger.info("word2em dimension for individual word: {}", model.getWordVecDimension());
logger.info("father: {}", model.encodeWord("father"));
logger.info("mother: {}", model.encodeWord("mother"));
logger.info("man: {}", model.encodeWord("man"));
logger.info("woman: {}", model.encodeWord("woman"));
logger.info("boy: {}", model.encodeWord("boy"));
logger.info("girl: {}", model.encodeWord("girl"));
logger.info("distance between boy and girl: {}", model.distance("boy", "girl"));
Stringdoc = "The Zen of Python. Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules.";
logger.info("doc: {}", model.encodeDocument(doc));
}
}
Questions
What is java-text-embedding?
chen0040/java-text-embedding is a public repo on GitHub by chen0040. Word embedding in Java.
Is java-text-embedding open source?
It declares the MIT license on GitHub.
Does java-text-embedding run on macOS, Windows or Linux?
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
How do I install java-text-embedding?
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Is java-text-embedding still maintained?
Its last change on GitHub was on 2021-03-15. Take My Repo does not judge from that whether it is maintained.
What do people who ran java-text-embedding say?
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.