sillsdev / sillsdev/silnlp

Guided decoding with "enhanced" keyterms

Open
#652 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39
Forks
7
Avg merge
1d 9h
Merged PRs (30d)
5

Description

By using some combination of alignments, LLM's and Levenshtein distance, we should be able to determine the "proper form" of keywords in the target sentence, and tell NLLB-200 to include that specific surface form of the word. This could be done by doing the following:

  1. Determining the matching of proper names for each verse from source to target
  2. Giving this information to an LLM to say "when this word is used here in this context, the surface form looks like this" - give it a lot of examples. Put them in the context window
  3. Ask the LLM: "For this new name in this context, what should the surface form be?"
  4. Take those surface forms and feed them to the LLM to "guide" the decoding.

Implementing this relies upon the successful implementation of #178.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue #178, which this proposal depends on, then locate the NLLB-200 decoding entry point. Define how alignment, LLM-produced surface forms, and Levenshtein matching connect; done means proper-name forms can guide decoding as described, with the behavior and coverage verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.