Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gielladetect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gielladetect

Language detection module based on the GiellaLT models, specifically aimed at minority and indigenous languages

  • 1.0.3
  • PyPI
  • Socket score

Maintainers
1

Makes the language classification script from the GiellaLT's corpus tools available as a python module (GiellaLT's website, original repo).

The source code as well as the language model files are released under the GPL-3.0 license.

Installation

pip install gielladetect

Usage

import gielladetect

text = "Lurer du på hva som rører seg innenfor veggene til Nasjonalbiblioteket på Solli plass i Oslo?"

gielladetect.detect(text)
# Result: 'nob'

# To restrict detection to a subset of languages:
gielladetect.detect(text, ['nob', 'nno', 'eng'])
# Result: 'nob'

Supported languages

Using ISO 639-3 codes.

CodeName
araArabic
bxrRussia Buriat
ckbCentral Kurdish
danDanish
deuGerman
engEnglish
estEstonian
faoFaroese
fasPersian
finFinnish
fitTornedalen Finnish
fkvKven Finnish
fraFrench
hbsSerbo-Croatian
islIcelandic
itaItalian
kalKalaallisut
kmrNorthern Kurdish
koiKomi-Permyak
kpvKomi-Zyrian
krlKarelian
mdfMoksha
mhrEastern Mari
mnsMansi
mrjWestern Mari
myvErzya
nnoNorwegian Nynorsk
nobNorwegian Bokmål
oloLivvi
polPolish
rmfKalo Finnish Romani
rmnBalkan Romani
rmuTavringer Romani
rmyVlax Romani
ronRomanian
rusRussian
smaSouthern Sami
smeNorthern Sami
smjLule Sami
smnInari Sami
smsSkolt Sami
somSomali
spaSpanish
sweSwedish
turTurkish
udmUdmurt
urdUrdu
vepVeps
vieVietnamese
yidYiddish
yrkNenets

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc