streamlit-octostar-utils 0.2.13__py3-none-any.whl → 0.2.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit_octostar_utils/api_crafter/nifi.py +0 -1
- streamlit_octostar_utils/nlp/language.py +3 -3
- {streamlit_octostar_utils-0.2.13.dist-info → streamlit_octostar_utils-0.2.15.dist-info}/METADATA +1 -1
- {streamlit_octostar_utils-0.2.13.dist-info → streamlit_octostar_utils-0.2.15.dist-info}/RECORD +6 -6
- {streamlit_octostar_utils-0.2.13.dist-info → streamlit_octostar_utils-0.2.15.dist-info}/WHEEL +0 -0
- {streamlit_octostar_utils-0.2.13.dist-info → streamlit_octostar_utils-0.2.15.dist-info}/licenses/LICENSE +0 -0
@@ -24,7 +24,6 @@ from ..core.dict import recursive_update_dict, travel_dict, jsondict_hash
|
|
24
24
|
from ..core.timestamp import now, string_to_datetime
|
25
25
|
from .fastapi import DefaultErrorRoute, Route
|
26
26
|
from ..ontology.inheritance import is_child_concept as is_child_concept_fn, get_label_keys
|
27
|
-
from ..ontology.expand_entities import expand_entities
|
28
27
|
|
29
28
|
RELATIONSHIP_ENTITY_NAME = "os_relationship"
|
30
29
|
LOCAL_RELATIONSHIP_ENTITY_NAME = "os_workspace_relationship"
|
@@ -10,12 +10,12 @@ def detect_language(text, min_confidence=None):
|
|
10
10
|
detected_lang, confidence = detector.classify(text)
|
11
11
|
if min_confidence and confidence < min_confidence:
|
12
12
|
return None, confidence
|
13
|
-
detected_lang =
|
14
|
-
detected_lang = Lang(detected_lang).name.lower()
|
13
|
+
detected_lang = to_name(detected_lang)
|
15
14
|
return detected_lang, confidence
|
16
15
|
|
17
16
|
def to_name(alpha2):
|
18
|
-
return Lang(alpha2).name
|
17
|
+
return Lang(alpha2).name
|
19
18
|
|
20
19
|
def to_alpha2(name):
|
20
|
+
name = re.sub(r'\b\w+', lambda m: m.group(0).capitalize(), lang)
|
21
21
|
return Lang(name).pt1
|
{streamlit_octostar_utils-0.2.13.dist-info → streamlit_octostar_utils-0.2.15.dist-info}/RECORD
RENAMED
@@ -2,7 +2,7 @@ streamlit_octostar_utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-Y
|
|
2
2
|
streamlit_octostar_utils/api_crafter/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
3
|
streamlit_octostar_utils/api_crafter/celery.py,sha256=BXOTGN9egdD75qf-PkccLGAoniilB9PZ_NRchFIjWdw,30051
|
4
4
|
streamlit_octostar_utils/api_crafter/fastapi.py,sha256=RKQrStPzG1I1pxsPJvGs_DRrnjlMJbVmu9ObMF2LgZ0,14368
|
5
|
-
streamlit_octostar_utils/api_crafter/nifi.py,sha256=
|
5
|
+
streamlit_octostar_utils/api_crafter/nifi.py,sha256=issF556Wi6JhE4kgKykbfdtvch-Ps8sENct92bAedTo,45755
|
6
6
|
streamlit_octostar_utils/api_crafter/parser/__init__.py,sha256=YeYWF6sdQiCFV_RKNW2t9Vs6KJExE2pbXxWTe_DOayY,107
|
7
7
|
streamlit_octostar_utils/api_crafter/parser/combine_fields.py,sha256=ddc44xkajw8MU0peAX_263DL7rPXbTKbHUjpOhRgvyU,8790
|
8
8
|
streamlit_octostar_utils/api_crafter/parser/entities_parser.py,sha256=zOQoN-p1Gz6ZzxvoX4M1b4Fi3mfmQr5zaNUcp_8gCjw,30016
|
@@ -20,7 +20,7 @@ streamlit_octostar_utils/core/threading/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEkt
|
|
20
20
|
streamlit_octostar_utils/core/threading/key_queue.py,sha256=7CJpj0gvZMQd8eC5wKQi3Ak5SQQ4zQ1OPTs_OP_kD20,2255
|
21
21
|
streamlit_octostar_utils/core/timestamp.py,sha256=a3s4xfm1nctLzYsHOJxqoWIDTdbNY_yN1OByl8ahLc8,383
|
22
22
|
streamlit_octostar_utils/nlp/__init__.py,sha256=BtlYDZK_xaEbc7Ju_7MznXbCVPZcdLn26xwR9qf_UhM,336
|
23
|
-
streamlit_octostar_utils/nlp/language.py,sha256=
|
23
|
+
streamlit_octostar_utils/nlp/language.py,sha256=Y4NSXVlXsARdzX9VY-leCT6AqKM1dExGoVWNm2L2UYg,645
|
24
24
|
streamlit_octostar_utils/nlp/ner.py,sha256=saE7A251JcAr6bFDGzRuSfXeqqRh5xbWRhgWbiKGeDM,13258
|
25
25
|
streamlit_octostar_utils/octostar/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
26
26
|
streamlit_octostar_utils/octostar/client.py,sha256=NUvHe9asd65g4-hJ4CuUvUns-9dNWes1XZRJlO9eAAc,1690
|
@@ -36,7 +36,7 @@ streamlit_octostar_utils/threading/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzp
|
|
36
36
|
streamlit_octostar_utils/threading/async_task_manager.py,sha256=q7N6YZwUvIYMzkSHmsJNheNVCv93c03H6Hyg9uH8pvk,4747
|
37
37
|
streamlit_octostar_utils/threading/session_callback_manager.py,sha256=LvZVP4g6tvKtYmI13f2j1sX_7hm61Groqp5xJine9_k,3973
|
38
38
|
streamlit_octostar_utils/threading/session_state_hot_swapper.py,sha256=6eeCQI6A42hp4DmW2NQw2rbeR-k9N8DhfBKQdN_fbLU,811
|
39
|
-
streamlit_octostar_utils-0.2.
|
40
|
-
streamlit_octostar_utils-0.2.
|
41
|
-
streamlit_octostar_utils-0.2.
|
42
|
-
streamlit_octostar_utils-0.2.
|
39
|
+
streamlit_octostar_utils-0.2.15.dist-info/METADATA,sha256=Dn4Ihl-Gi6pqSR-TCzFND-GD1zJF7zLMtxyiV598XC8,2330
|
40
|
+
streamlit_octostar_utils-0.2.15.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
41
|
+
streamlit_octostar_utils-0.2.15.dist-info/licenses/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
|
42
|
+
streamlit_octostar_utils-0.2.15.dist-info/RECORD,,
|
{streamlit_octostar_utils-0.2.13.dist-info → streamlit_octostar_utils-0.2.15.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|