Simon Clematide
commited on
Commit
·
f6eb553
1
Parent(s):
d367806
Change names from lang-detect to langident for consistency.
Browse files- config.json +4 -6
- configuration_lang.py +1 -1
- lang_detect.py → langident.py +0 -0
config.json
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
{
|
2 |
"_name_or_path": "impresso-project/impresso-langident",
|
3 |
-
"architectures": [
|
4 |
-
"LangDetectorModel"
|
5 |
-
],
|
6 |
"filename": "langident-v1.0.0.bin",
|
7 |
"attention_probs_dropout_prob": 0.1,
|
8 |
"auto_map": {
|
@@ -10,12 +8,12 @@
|
|
10 |
"AutoModelForTokenClassification": "modeling_lang.LangDetectorModel"
|
11 |
},
|
12 |
"custom_pipelines": {
|
13 |
-
"
|
14 |
-
"impl": "
|
15 |
"pt": "AutoModelForTokenClassification"
|
16 |
}
|
17 |
},
|
18 |
-
"model_type": "
|
19 |
"torch_dtype": "float32",
|
20 |
"transformers_version": "4.49.0"
|
21 |
}
|
|
|
1 |
{
|
2 |
"_name_or_path": "impresso-project/impresso-langident",
|
3 |
+
"architectures": ["LangDetectorModel"],
|
|
|
|
|
4 |
"filename": "langident-v1.0.0.bin",
|
5 |
"attention_probs_dropout_prob": 0.1,
|
6 |
"auto_map": {
|
|
|
8 |
"AutoModelForTokenClassification": "modeling_lang.LangDetectorModel"
|
9 |
},
|
10 |
"custom_pipelines": {
|
11 |
+
"langident": {
|
12 |
+
"impl": "langident.LangDetectionPipeline",
|
13 |
"pt": "AutoModelForTokenClassification"
|
14 |
}
|
15 |
},
|
16 |
+
"model_type": "langident",
|
17 |
"torch_dtype": "float32",
|
18 |
"transformers_version": "4.49.0"
|
19 |
}
|
configuration_lang.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
|
4 |
|
5 |
class ImpressoConfig(PretrainedConfig):
|
6 |
-
model_type = "
|
7 |
|
8 |
def __init__(
|
9 |
self,
|
|
|
3 |
|
4 |
|
5 |
class ImpressoConfig(PretrainedConfig):
|
6 |
+
model_type = "langident"
|
7 |
|
8 |
def __init__(
|
9 |
self,
|
lang_detect.py → langident.py
RENAMED
File without changes
|