Skip to content

Proof of concept for using langid - #1

Open
ojas-uls-dev wants to merge 1 commit into
mainfrom
initial_merge
Open

Proof of concept for using langid#1
ojas-uls-dev wants to merge 1 commit into
mainfrom
initial_merge

Conversation

@ojas-uls-dev

Copy link
Copy Markdown
Collaborator

Not really a pull request, but just wanted your eyes on this.

As discussed in weekly one on one, here is one way we could detect English used within our XML. The approach is to take sequences of 5 words (skipping 3 at a time) and classify small phrases into english. The task of classifying small phrases is done by langid, a small classification model that does this task pretty quickly.

Langid is largely abandoned (last commit was 9 years ago) however is functional enough for us to make use of it. It was able to process a wikipedia page worth of phrases in a couple seconds on laptop hardware, so fast enough that we aren't waiting for days to process all our documents.

@ojas-uls-dev
ojas-uls-dev requested a review from ctgraham August 5, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant