streamlit-octostar-utils 0.1.7a4__tar.gz → 0.1.7a5__tar.gz
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-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/PKG-INFO +1 -1
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/pyproject.toml +1 -1
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/nlp/ner.py +3 -11
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/LICENSE +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/README.md +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/celery.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/fastapi.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/nifi.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/combine_fields.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/entities_parser.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/generics.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/info.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/linkchart_functions.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/matches.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/parameters.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/rules.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/api_crafter/parser/signals.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/core/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/core/dict.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/core/filetypes.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/core/threading/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/core/threading/key_queue.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/core/timestamp.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/hello.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/nlp/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/nlp/language.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/octostar/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/octostar/client.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/octostar/context.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/octostar/permissions.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/ontology/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/ontology/expand_entities.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/ontology/inheritance.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/ontology/validation.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/style/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/style/common.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/threading/__init__.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/threading/async_task_manager.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/threading/session_callback_manager.py +0 -0
- {streamlit_octostar_utils-0.1.7a4 → streamlit_octostar_utils-0.1.7a5}/streamlit_octostar_utils/threading/session_state_hot_swapper.py +0 -0
@@ -32,7 +32,7 @@ REGEX_NER_MODELS = {
|
|
32
32
|
}
|
33
33
|
|
34
34
|
BASE_TO_ONTONOTES_LABELMAP = {"PER": "PERSON"}
|
35
|
-
BASE_ALLOWED_LABELS = ["PERSON", "ORG", "LOC", "NORP", "GPE", "PRODUCT", "DATE", "TIME", "PHONE"]
|
35
|
+
BASE_ALLOWED_LABELS = ["PERSON", "ORG", "LOC", "NORP", "GPE", "PRODUCT", "DATE", "TIME", "PHONE", "IP_ADDRESS", "EMAIL"]
|
36
36
|
|
37
37
|
|
38
38
|
def _sumy__get_best_sentences(sentences, rating, *args, **kwargs):
|
@@ -96,6 +96,7 @@ class NERObject(object):
|
|
96
96
|
}
|
97
97
|
if self.sources:
|
98
98
|
data["sources"] = self.sources
|
99
|
+
return data
|
99
100
|
|
100
101
|
def __repr__(self):
|
101
102
|
return f"NERObject(label={self.label},name={self.name})"
|
@@ -284,13 +285,4 @@ def get_ner_handler(language, fast=False, compression_ratio="auto"):
|
|
284
285
|
|
285
286
|
@st.cache_resource
|
286
287
|
def get_cached_ner_handler(language, fast):
|
287
|
-
return get_ner_handler(language, fast)
|
288
|
-
|
289
|
-
|
290
|
-
def test():
|
291
|
-
text = """My name is Valerio Simoni, and I live in NYC. I love the Colosseum, and my phone is +123 456 789.
|
292
|
-
my email is aaa@ggg.com, but my ip address is secret! 123.123.123.0:1111"""
|
293
|
-
entities = get_ner_handler("english", True)(text)
|
294
|
-
print(entities)
|
295
|
-
|
296
|
-
test()
|
288
|
+
return get_ner_handler(language, fast)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|