Simon Clematide
commited on
Commit
·
d7a9d39
1
Parent(s):
996ea64
Add language detection description for impresso-langident in README.md
Browse files
README.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2 |
license: agpl-3.0
|
3 |
---
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
## How to install
|
6 |
|
7 |
```bash
|
@@ -22,10 +27,10 @@ lang_pipeline = pipeline(
|
|
22 |
device="cpu",
|
23 |
)
|
24 |
|
25 |
-
|
26 |
l'Europe, le Royaume de France se trouvait à la fois au bord du désespoir et
|
27 |
face à une opportunité."""
|
28 |
|
29 |
-
langs = lang_pipeline(
|
30 |
print(langs)
|
31 |
```
|
|
|
2 |
license: agpl-3.0
|
3 |
---
|
4 |
|
5 |
+
## impresso-langident
|
6 |
+
|
7 |
+
Detects the language for impresso-like historical newspaper data in the languages:
|
8 |
+
German (de), French (fr), Italian (it), English (en), and Luxembourgish (lb).
|
9 |
+
|
10 |
## How to install
|
11 |
|
12 |
```bash
|
|
|
27 |
device="cpu",
|
28 |
)
|
29 |
|
30 |
+
text = """En l'an 1348, au plus fort des ravages de la peste noire à travers
|
31 |
l'Europe, le Royaume de France se trouvait à la fois au bord du désespoir et
|
32 |
face à une opportunité."""
|
33 |
|
34 |
+
langs = lang_pipeline(text)
|
35 |
print(langs)
|
36 |
```
|