Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JohnSnowLabs/nlu
/ functions
Functions
1,193 in github.com/JohnSnowLabs/nlu
⨍
Functions
1,193
◇
Types & classes
281
↳
Endpoints
1
↓ 1 callers
Method
enforce_AT_schema_on_pipeline_and_add_NER_converter
Enforces the AT naming schema on all column names and add missing NER converters
nlu/pipe/utils/pipe_utils.py:215
↓ 1 callers
Method
enforce_chunk2doc_on_sentence_embeddings
#If Sentence Resolvers are in pipeline, all Sentence-Embeddings must feed from Chunk2Doc which stems from the entities column to reso
nlu/pipe/pipe_logic.py:664
↓ 1 callers
Method
extract_NER_col
Extract the exact name of the NER IOB column in the component_to_resolve
nlu/pipe/utils/component_utils.py:147
↓ 1 callers
Method
extract_NER_converter_col
Extract the exact name of the NER-converter column in the component_to_resolve
nlu/pipe/utils/component_utils.py:160
↓ 1 callers
Method
extract_all_sentence_storage_refs_or_nlu_refs
extract either NLU_ref or storage_ref as fallback for a list of embedding components
nlu/pipe/viz/streamlit_viz/streamlit_utils_OS.py:146
↓ 1 callers
Function
extract_base_sparknlp_features
Extract base features common in all saprk NLP annotators Begin/End/Embedding/Metadata/Result, except for the blacklisted features Expects
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:152
↓ 1 callers
Function
extract_base_sparkocr_features
(row: pd.Series, configs: SparkOCRExtractorConfig)
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:69
↓ 1 callers
Function
extract_finisher_rows
(row: pd.Series, configs: FinisherExtractorConfig)
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:140
↓ 1 callers
Function
extract_light_pipe_rows
Extract Annotations from Light Pipeline into same represenation as other extractors in thos module
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:21
↓ 1 callers
Method
extract_provided_features_ref_from_pipe
Extract provided features from component_list, which have storage ref.
nlu/pipe/pipe_logic.py:108
↓ 1 callers
Method
extract_provided_features_refless_from_pipe
Extract provided features from component_list, which have no storage ref
nlu/pipe/pipe_logic.py:99
↓ 1 callers
Method
extract_required_features_ref_from_pipe
Extract provided features from component_list, which have storage ref
nlu/pipe/pipe_logic.py:122
↓ 1 callers
Method
extract_required_features_refless_from_pipe
Extract provided features from component_list, which have no storage ref
nlu/pipe/pipe_logic.py:88
↓ 1 callers
Method
extract_sentence_embedding_conversion_candidates
Extract information about embedding conversion candidates
nlu/pipe/pipe_logic.py:140
↓ 1 callers
Function
extract_sparknlp_metadata
Extract base features common in all saprk NLP annotators Begin/End/Embedding/Metadata/Result, except for the blacklisted features Expects
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:227
↓ 1 callers
Function
extract_table
(df)
nlu/pipe/extractors/extractor_methods/ocr_extractors.py:6
↓ 1 callers
Function
extract_tables
(df, rename_cols=False)
nlu/pipe/extractors/extractor_methods/ocr_extractors.py:17
↓ 1 callers
Method
fallback_modin_to_sdf
Casting potential Modin data to spark and add index col. # Modin tests, This could crash if Modin not installed
nlu/pipe/utils/data_conversion_utils.py:262
↓ 1 callers
Method
find_all_classifier_components
Find ALL classifier component_to_resolve in component_list
nlu/pipe/viz/streamlit_viz/streamlit_utils_OS.py:50
↓ 1 callers
Method
find_chunk_embed_col
(df)
nlu/pipe/viz/streamlit_viz/viz_building_blocks/block_utils/entity_manifold_utils.py:66
↓ 1 callers
Method
find_ner_model
Find NER component_to_resolve in component_list
nlu/pipe/viz/streamlit_viz/streamlit_utils_OS.py:81
↓ 1 callers
Method
find_trainable_embed_consumer
Find traianble component_to_resolve which consumes emeddings. Returns index of component_to_resolve and type of embedding if found, otherwise
nlu/pipe/utils/pipe_utils.py:590
↓ 1 callers
Function
fixed
()
docs/_includes/scripts/lib/affix.js:40
↓ 1 callers
Method
get_NER_tags_in_pipe
Get NER tags in component_list, used for showing visualizable tags
nlu/pipe/viz/streamlit_viz/streamlit_utils_OS.py:90
↓ 1 callers
Method
get_accepted_audio_file_types
Get all file types/suffixes that can be processed by the pipeline
nlu/pipe/utils/audio_data_conversion_utils.py:123
↓ 1 callers
Method
get_accepted_ocr_file_types
Get all file typtes/suffixes that can be processed by the pipeline
nlu/pipe/utils/ocr_data_conversion_utils.py:96
↓ 1 callers
Function
get_authenticated_spark
Authenticates environment if not already done so and returns Spark Context with Healthcare Jar loaded 0. If no Spark-NLP-Healthcare, install
nlu/utils/environment/authentication.py:212
↓ 1 callers
Function
get_classifier_dataset
()
tests/datasets/dataset_downloader.py:74
↓ 1 callers
Method
get_columns_at_same_level_of_pipe
Get List of columns in df that are generated from components in the pipeline which are at the same output level as the pipe . :par
nlu/pipe/utils/output_level_resolution_utils.py:78
↓ 1 callers
Method
get_converters_provider_info
For a component_to_resolve and a component_list, find storage_ref and
nlu/pipe/pipe_logic.py:660
↓ 1 callers
Method
get_default_model
()
nlu/components/classifiers/yake/yake.py:5
↓ 1 callers
Method
get_default_model
()
nlu/components/matchers/regex_matcher/regex_matcher.py:5
↓ 1 callers
Method
get_default_word_seg_for_lang
(language)
nlu/components/tokenizers/word_segmenter/word_segmenter.py:26
↓ 1 callers
Method
get_embed_cols
(pipe)
nlu/pipe/viz/streamlit_viz/streamlit_utils_OS.py:23
↓ 1 callers
Method
get_extraction_configs
Search first OC namespace and if not found the HC Namespace for each Annotator Class in pipeline and get corresponding config Returns a dictio
nlu/pipe/pipeline.py:218
↓ 1 callers
Function
get_first_anno_with_output_type
(pipe, out_type)
nlu/pipe/utils/predict_helper.py:20
↓ 1 callers
Function
get_html
Convert HTML so it can be rendered.
nlu/pipe/viz/streamlit_viz/logo.py:9
↓ 1 callers
Method
get_json_data_for_pipe_model_at_stage_number
Gets the json metadata from a model_anno_obj for a given base path at a specific stage index
nlu/pipe/utils/pipe_utils.py:85
↓ 1 callers
Method
get_json_data_for_pipe_model_at_stage_number_on_databricks
Gets the json metadata from a model_anno_obj for a given base path at a specific stage index on databricks
nlu/pipe/utils/pipe_utils.py:94
↓ 1 callers
Method
get_missing_required_features
For every component_to_resolve in the pipeline
nlu/pipe/pipe_logic.py:153
↓ 1 callers
Method
get_ner_cols
find NER pred, conf and class cols. Cols[0] = entity_class_col Cols[1] = entity_confidence Cols[2] = entity_chunk
nlu/pipe/viz/streamlit_viz/viz_building_blocks/block_utils/entity_manifold_utils.py:77
↓ 1 callers
Function
get_nlu_pipe_for_nlp_pipe
Get a list of NLU components wrapping each Annotator in pipe. Pipe should be of class Pipeline, LightPipeline, or PipelineModel :param pipe: f
nlu/pipe/component_resolution.py:225
↓ 1 callers
Function
get_open_source_spark_context
(gpu, apple_silicon)
nlu/__init__.py:379
↓ 1 callers
Function
get_open_source_spark_context_with_openai
(gpu, apple_silicon)
nlu/__init__.py:388
↓ 1 callers
Method
get_output_level_mapping_by_component
Get a mapping key=NluComponent and value = output level :param pipe: NLU pipe for which to get the mapping :return: dict where key = N
nlu/pipe/utils/output_level_resolution_utils.py:136
↓ 1 callers
Method
get_pipe_param_dict
(pipe)
nlu/pipe/viz/streamlit_viz/streamlit_viz_tracker.py:163
↓ 1 callers
Method
get_random
()
nlu/pipe/viz/vis_utils.py:10
↓ 1 callers
Function
get_sample_pdf_with_no_text_col
()
tests/utils/test_utils.py:69
↓ 1 callers
Method
get_sample_spark_dataframe
(self)
nlu/pipe/pipeline.py:103
↓ 1 callers
Function
get_svg
Convert an SVG to a base64-encoded image.
nlu/pipe/viz/streamlit_viz/logo.py:4
↓ 1 callers
Function
get_test_data
(lang, input_data_type)
tests/utils/test_data.py:131
↓ 1 callers
Function
get_trainable_component_for_nlu_ref
(nlu_ref)
nlu/pipe/component_resolution.py:168
↓ 1 callers
Method
get_trainable_model
()
nlu/components/embeddings/doc2vec/doc2vec.py:17
↓ 1 callers
Function
handleImageLoad
()
docs/_includes/scripts/utils/imagesLoad.js:11
↓ 1 callers
Function
handleTouchmove
(e)
docs/_includes/scripts/lib/swiper.js:130
↓ 1 callers
Function
handleTouchstart
(e)
docs/_includes/scripts/lib/swiper.js:123
↓ 1 callers
Method
has_document_assembler
(pipe: NLUPipeline)
nlu/pipe/utils/pipe_utils.py:440
↓ 1 callers
Method
has_licensed_components
Check if any licensed components in component_list
nlu/pipe/pipe_logic.py:276
↓ 1 callers
Method
has_param_cols
(df: pd.DataFrame)
nlu/pipe/utils/predict_helper.py:49
↓ 1 callers
Function
he
(n)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callers
Function
hide
()
docs/_includes/scripts/lib/modal.js:45
↓ 1 callers
Method
infer_assertion_dependencies
Finds relation_col,document_col cols for relation viz viz
nlu/pipe/viz/vis_utils_HC.py:229
↓ 1 callers
Method
infer_dep_dependencies
Finds entities,pos,dep_typed,dep_untyped and doc cols for dep viz viz
nlu/pipe/viz/vis_utils_HC.py:102
↓ 1 callers
Method
infer_dep_dependencies
Finds entities,pos,dep_typed,dep_untyped and doc cols for dep viz viz
nlu/pipe/viz/vis_utils_OS.py:90
↓ 1 callers
Method
infer_ner_dependencies
Finds entities and doc cols for ner viz
nlu/pipe/viz/vis_utils_HC.py:59
↓ 1 callers
Method
infer_ner_dependencies
Finds entities and doc cols for ner viz
nlu/pipe/viz/vis_utils_OS.py:46
↓ 1 callers
Method
infer_prediction_output_level
This function checks the LAST component_to_resolve of the NLU pipeline and infers from that the output level via checking the compo
nlu/pipe/utils/output_level_resolution_utils.py:18
↓ 1 callers
Method
infer_relation_dependencies
Finds relation_col,document_col cols for relation viz viz
nlu/pipe/viz/vis_utils_HC.py:188
↓ 1 callers
Method
infer_resolution_dependencies
Finds entities_col,resolution_col,doc_col cols for resolution viz viz
nlu/pipe/viz/vis_utils_HC.py:150
↓ 1 callers
Method
infer_viz_licensed
For a given NLUPipeline with licensed components, infers which visualizations are applicable.
nlu/pipe/viz/vis_utils_HC.py:14
↓ 1 callers
Method
infer_viz_open_source
For a given NLUPipeline with only open source components, infers which visualizations are applicable.
nlu/pipe/viz/vis_utils_OS.py:11
↓ 1 callers
Method
infer_viz_type
For a given NLUPipeline, infers which visualizations are applicable.
nlu/pipe/viz/vis_utils.py:14
↓ 1 callers
Function
init
()
docs/_includes/scripts/archieve.js:51
↓ 1 callers
Function
init
()
docs/_includes/scripts/lib/swiper.js:17
↓ 1 callers
Function
init
()
docs/_includes/scripts/lib/modal.js:16
↓ 1 callers
Function
initData
(data)
docs/_includes/search-providers/default/search.js:16
↓ 1 callers
Function
insert
(key, title)
docs/_includes/pageview-providers/leancloud/leancloud.js:30
↓ 1 callers
Method
insert_chunk_embedder_to_pipe_if_missing
Scan component_list for chunk_embeddings. If missing, add new. Validate NER model_anno_obj is loaded
nlu/pipe/viz/streamlit_viz/viz_building_blocks/block_utils/entity_manifold_utils.py:17
↓ 1 callers
Function
install_and_import_package
Install Spark-NLP-Healthcare PyPI Package in current environment if it cannot be imported and license provided
nlu/utils/environment/env_utils.py:93
↓ 1 callers
Method
is_NER_IOB_token_classifier
Check if a Token Classifier uses IOB PRediction format
nlu/pipe/utils/component_utils.py:135
↓ 1 callers
Method
is_NER_converter
Check if a NLU Component wraps a NER-IOB to NER-Pr etty converter
nlu/pipe/utils/component_utils.py:142
↓ 1 callers
Method
is_NER_provider
Check if a NLU Component wraps a NER/NER-Medical model_anno_obj
nlu/pipe/utils/component_utils.py:126
↓ 1 callers
Method
is_embedding_converter
Check if NLU component_to_resolve is embedding converter
nlu/pipe/utils/component_utils.py:120
↓ 1 callers
Function
is_env_pyspark_2_3
()
nlu/utils/environment/env_utils.py:44
↓ 1 callers
Function
is_env_pyspark_2_4
()
nlu/utils/environment/env_utils.py:37
↓ 1 callers
Function
is_env_pyspark_3_0
()
nlu/utils/environment/env_utils.py:30
↓ 1 callers
Function
is_env_pyspark_3_1
()
nlu/utils/environment/env_utils.py:17
↓ 1 callers
Function
is_model
Check whether there is a model_anno_obj stored in path
nlu/utils/environment/offline_load_utils.py:20
↓ 1 callers
Function
is_nlu_uid
(uid: str)
nlu/__init__.py:282
↓ 1 callers
Function
is_pipe
Check whether there is a pyspark component_list stored in path
nlu/utils/environment/offline_load_utils.py:15
↓ 1 callers
Function
is_produced_by_multi_output_component
For these components we resolve to None, because they are already beeign satisfied by another component that outputs multiple features includi
nlu/pipe/component_resolution.py:31
↓ 1 callers
Function
jsl_id_to_anno_class
Returns anno_class name for jsl_id :param jsl_id: id of anno :return JslAnnoPyClass : cass of annotator
nlu/universe/component_universes.py:212
↓ 1 callers
Function
license_to_bucket
(license_to_resole: LicenseType)
nlu/universe/universes.py:21
↓ 1 callers
Method
list_all_components
(self)
nlu/info.py:70
↓ 1 callers
Method
load_classifier_dl_dataset
(self)
tests/nlu_core_tests/model_save_tests.py:34
↓ 1 callers
Method
load_classifier_dl_dataset
(self)
tests/nlu_core_tests/model_load_tests.py:39
↓ 1 callers
Method
load_multi_classifier_dl_dataset
(self)
tests/nlu_core_tests/training_tests/multi_classifier_dl_tests.py:133
↓ 1 callers
Function
load_nlu_pipe_from_hdd
Either there is a pipeline of models in the path or just one singular model_anno_obj. If it is a component_list, load the component_list and retu
nlu/__init__.py:325
↓ 1 callers
Function
load_nlu_pipe_from_hdd_in_databricks
Either there is a pipeline of models in the path or just one singular model_anno_obj. If it is a component_list, load the component_list and retu
nlu/__init__.py:286
↓ 1 callers
Method
load_pos_train_dataset_and_get_path
(self)
tests/nlu_core_tests/training_tests/pos_tests.py:35
← previous
next →
301–400 of 1,193, ranked by callers