Skip to main content

*** Redistribution and use in source, with or without modifications, are permitted for academic purposes, provided that the proper acknowledgements are done.

##Example code

from LanguageIdentifier import predict
from LanguageIdentifier import rank

print(predict("Det her er dansk"))
print(rank("This is english")) 

predict outputs the most likely language of the sentence.
rank returns a list of tuples containing their respective probabilities.

da
[('ca', 2.175456259578823e-09), ('cs', 1.421048256844415e-08), ('da', 1.600260475242976e-06), ('de', 2.074262738460675e-06), ('en', 0.9998534917831421), ('es', 2.0248389631660757e-08), ('et', 9.649543386558435e-08), ('fi', 1.3886580063626752e-06), ('fr', 2.1743964850884367e-07), ('hr', 6.692872034363972e-08), ('hu', 0.00012513755063991994), ('it', 1.0744290079856e-07), ('lt', 9.55935547608533e-07), ('nl', 1.4533302419295069e-06), ('no', 6.45266709398129e-06), ('pl', 3.1909507924865466e-07), ('pt', 1.301345520232644e-07), ('ro', 6.668889795946598e-08), ('sv', 6.2374842855206225e-06), ('tr', 4.649361429187593e-08)]```

Metadata

Release files for LanguageIdentifier 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LanguageIdentifier 1.1.1
File Size Uploaded
LanguageIdentifier-1.1.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for LanguageIdentifier 1.1.1
File Interpreter ABI Platform
LanguageIdentifier-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 MB

Release files / LanguageIdentifier-1.1.1.tar.gz

Download URL LanguageIdentifier-1.1.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
04f1dedf43a219a2b101e2f4268f0f3321a3ceb1a3ad16551ffd944b39bef142
BLAKE2b-256 checksum
How to use checksums
69cb84910ed6edbddfc55e484fec9a174bd35d7d369e32d4477f01c7373b9492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release files / LanguageIdentifier-1.1.1-py3-none-any.whl

Download URL LanguageIdentifier-1.1.1-py3-none-any.whl
Size 3.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
788613b3dd3ef9533ad746ae34fe0ca8285316bc9b2a7093397da22c0d74481f
BLAKE2b-256 checksum
How to use checksums
8483b1aac7ba062000a377407c75e9f6ac25bb4efd924f6a6b7ee5b2a9a82535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page