Commit
·
f038567
1
Parent(s):
829d334
Update README.md
Browse files
README.md
CHANGED
@@ -28,6 +28,16 @@ pip install codeswitch
|
|
28 |
|
29 |
* **Method-1**
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
```py
|
32 |
|
33 |
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
|
@@ -41,12 +51,3 @@ lid_model("put any spanish english code-mixed sentence")
|
|
41 |
|
42 |
```
|
43 |
|
44 |
-
* **Method-2**
|
45 |
-
|
46 |
-
```py
|
47 |
-
from codeswitch.codeswitch import LanguageIdentification
|
48 |
-
lid = LanguageIdentification('spa-eng')
|
49 |
-
text = "" # your code-mixed sentence
|
50 |
-
result = lid.identify(text)
|
51 |
-
print(result)
|
52 |
-
```
|
|
|
28 |
|
29 |
* **Method-1**
|
30 |
|
31 |
+
```py
|
32 |
+
from codeswitch.codeswitch import LanguageIdentification
|
33 |
+
lid = LanguageIdentification('spa-eng')
|
34 |
+
text = "" # your code-mixed sentence
|
35 |
+
result = lid.identify(text)
|
36 |
+
print(result)
|
37 |
+
```
|
38 |
+
|
39 |
+
* **Method-2**
|
40 |
+
|
41 |
```py
|
42 |
|
43 |
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
|
|
|
51 |
|
52 |
```
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|