MCPcopy Create free account

hub / github.com/JohnSnowLabs/nlu / functions

Functions1,193 in github.com/JohnSnowLabs/nlu

↓ 1 callersFunctionlog_df
(df, test_group)
tests/utils/test_utils.py:15
↓ 1 callersMethodlog_resolution_status
(provided_features_no_ref, required_features_no_ref, provided_features_ref, requ
nlu/pipe/pipe_logic.py:722
↓ 1 callersFunctionlt
(o,e,t)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersMethodmaybe_from_pandas_df
(df: pd.DataFrame)
nlu/pipe/utils/predict_helper.py:53
↓ 1 callersFunctionmemorize
(f)
docs/_includes/search-providers/default/search.js:7
↓ 1 callersMethodmerge_token_classifiers_with_embed_pipe
Merge token feature generators into embed component_list. i.e. Pos/Dep_depdency/Untyped_dep if not already present in component_list
nlu/pipe/viz/streamlit_viz/streamlit_utils_OS.py:129
↓ 1 callersFunctionmodel_test
(nlu_ref, output_level=None, drop_irrelevant_cols=False, metadata=True, positions=True, test_gr
tests/utils/test_utils.py:183
↓ 1 callersFunctionn
(a)
docs/assets/plugins/jquery-match-height/jquery.matchHeight-min.js:6
↓ 1 callersMethodnlp_component_has_storage_ref
Check if a storage ref is defined on the Spark NLP Annotator model_anno_obj
nlu/pipe/utils/resolution/storage_ref_utils.py:44
↓ 1 callersMethodnlu_component_has_storage_ref
Check if a storage ref is defined on the Spark NLP Annotator embellished by the NLU Component
nlu/pipe/utils/resolution/storage_ref_utils.py:67
↓ 1 callersFunctionnlu_ref_to_component
This method implements the main namespace for all component_to_resolve names. It parses the input request and passes the data to a resolver m
nlu/pipe/component_resolution.py:122
↓ 1 callersMethodnp_to_pdf
(data, raw_text_column)
nlu/pipe/utils/data_conversion_utils.py:370
↓ 1 callersMethodnp_to_sdf
Casting numpy array to spark and add index col. This is a bit inefficient. Casting follow np->pd->spark->pd. We could cut out the first pd step
nlu/pipe/utils/data_conversion_utils.py:229
↓ 1 callersFunctionot
()
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersMethodpds_to_pdf
(data, raw_text_column)
nlu/pipe/utils/data_conversion_utils.py:377
↓ 1 callersMethodpds_to_sdf
Casting pandas series to spark and add index col. # for df['text'] colum/series passing casting follows pseries->pdf->spark->pd
nlu/pipe/utils/data_conversion_utils.py:203
↓ 1 callersFunctionpreCalc
()
docs/_includes/scripts/lib/swiper.js:26
↓ 1 callersFunctionpreCalc
()
docs/_includes/scripts/lib/affix.js:20
↓ 1 callersFunctionpredict_multi_threaded_light_pipe
(pipe, data, output_level, positions, keep_stranger_features, metadata,
nlu/pipe/utils/predict_helper.py:101
↓ 1 callersMethodprint_all_languages
Print all languages which are available in NLU Spark NLP pointer
nlu/discovery.py:57
↓ 1 callersFunctionprocess_was_suc
( result: subprocess.CompletedProcess, )
tests/run_tests.py:48
↓ 1 callersFunctionq
()
docs/assets/plugins/bootstrap/js/bootstrap.min.js:6
↓ 1 callersFunctionqueryString
()
docs/_includes/scripts/archieve.js:3
↓ 1 callersFunctionremoveElement
()
docs/assets/plugins/bootstrap/js/bootstrap.js:126
↓ 1 callersMethodremove_convertable_storage_refs
Remove required storage ref features if conversion candidate has it, so that storage ref provider will not be downloaded twice
nlu/pipe/utils/pipe_utils.py:600
↓ 1 callersFunctionrename_duplicate_cols
(dfs: List[pd.DataFrame])
nlu/pipe/extractors/extractor_methods/ocr_extractors.py:33
↓ 1 callersMethodrename_duplicate_cols
Rename cols with duplicate names
nlu/pipe/utils/pipe_utils.py:577
↓ 1 callersFunctionrender
(data)
docs/_includes/search-providers/default/search.js:59
↓ 1 callersFunctionrenderItem
(index, title, url)
docs/_includes/search-providers/default/search.js:55
↓ 1 callersMethodreplace_untrained_component_with_trained
Write metadata fields to pipeline, for now only whether it contains OCR components or not. To be extended in the future :return:
nlu/pipe/utils/pipe_utils.py:715
↓ 1 callersFunctionresetTestOptions
()
docs/assets/plugins/jquery-match-height/test.js:16
↓ 1 callersMethodresolve_input_dependent_component_to_output_level
For a given NLU component which is input dependent , resolve its output level by checking if it's input stem from document or senten
nlu/pipe/utils/output_level_resolution_utils.py:33
↓ 1 callersFunctionresolve_storage_ref
Returns a nlp_ref, nlu_ref and whether it is a licensed model_anno_obj or not and an updated languiage, if multi lingual
nlu/pipe/utils/resolution/storage_ref_resolution_utils.py:9
↓ 1 callersFunctionrun_cmd_and_check_succ
( args: List[str], log=True, timeout=60 )
tests/run_tests.py:19
↓ 1 callersFunctionsearchButtonsByTag
(_tag/*raw tag*/)
docs/_includes/scripts/archieve.js:60
↓ 1 callersFunctionsearchByQuery
(query)
docs/_includes/search-providers/default/search.js:32
↓ 1 callersFunctionsetOptions
(options)
docs/_includes/scripts/lib/swiper.js:9
↓ 1 callersFunctionsetOptions
(options)
docs/_includes/scripts/lib/toc.js:10
↓ 1 callersFunctionsetOptions
(options)
docs/_includes/scripts/lib/affix.js:10
↓ 1 callersFunctionsetOptions
(options)
docs/_includes/scripts/lib/modal.js:10
↓ 1 callersFunctionset_cols_on_nlu_components
(iterable_components)
nlu/pipe/component_resolution.py:251
↓ 1 callersMethodset_column_values_on_components_from_pretrained_pipe
Set output/input cols on Nlu Components loaded from a pipeline
nlu/pipe/utils/pipe_utils.py:109
↓ 1 callersMethodset_storage_ref_attribute_of_embedding_converters
For every embedding converter, we set storage ref attr on it, based on what the storage ref from it's provider is
nlu/pipe/utils/component_utils.py:184
↓ 1 callersMethodsize_of
Convert data to LihgtPipeline Compatible Format, which is np.array[str], list[str] and str but we need list anyways later. So we cre
nlu/pipe/utils/data_conversion_utils.py:438
↓ 1 callersMethodstr_list_to_pdf
(data, raw_text_column)
nlu/pipe/utils/data_conversion_utils.py:363
↓ 1 callersMethodstr_list_to_sdf
Casting str list to spark and add index col. This is a bit inefficient. Casting follow # # inefficient, list->pd->spark->pd , we can could first pd
nlu/pipe/utils/data_conversion_utils.py:249
↓ 1 callersMethodstr_to_pdf
(data, raw_text_column)
nlu/pipe/utils/data_conversion_utils.py:356
↓ 1 callersMethodstr_to_sdf
Casting str to spark and add index col. This is a bit inefficient. Casting follow # inefficient, str->pd->spark->pd , we can could first pd
nlu/pipe/utils/data_conversion_utils.py:240
↓ 1 callersMethodstyle_link
(text,url, CSS_class)
nlu/pipe/viz/streamlit_viz/streamlit_viz_tracker.py:34
↓ 1 callersMethodstyle_model_link
(model,text,url, CSS_class)
nlu/pipe/viz/streamlit_viz/streamlit_viz_tracker.py:53
↓ 1 callersMethodsubstitute_col_names
Some truly irrelevant cols might be dropped, regardless of anno Extractor config Some truly irrelevant cols might be dropped, regardl
nlu/pipe/col_substitution/col_name_substitution_utils.py:56
↓ 1 callersMethodtable_question_pdf_to_sdf
(data, spark_sess)
nlu/pipe/utils/data_conversion_utils.py:69
↓ 1 callersMethodtable_question_str_to_sdf
(data, spark_sess)
nlu/pipe/utils/data_conversion_utils.py:55
↓ 1 callersMethodtest_DOC_table_extraction
(self)
tests/nlu_ocr_tests/image_table_detector.py:20
↓ 1 callersMethodtest_deidentification
(self)
tests/nlu_ocr_tests/ocr_deid_pipe.py:16
↓ 1 callersMethodtest_deidentification
(self)
tests/nlu_hc_tests/component_tests/pipeline_parcer/pipeline_parcer.py:43
↓ 1 callersMethodtest_few_shot_assertion_model
(self)
tests/nlu_hc_tests/component_tests/few_shot_assertion_classifier/assertion_tests.py:20
↓ 1 callersMethodto_pandas_df
Convert data to LihgtPipeline Compatible Format, which is np.array[str], list[str] and str but we need list anyways later. So we cre
nlu/pipe/utils/data_conversion_utils.py:411
↓ 1 callersFunctiontoggleScala
()
docs/_includes/scripts/programmingLanguageSwitcherScalaPython.js:2
↓ 1 callersFunctiontoggleScala
()
docs/_includes/scripts/programmingLanguageSwitcherJavaScalaPython.js:2
↓ 1 callersFunctiontransitionEnd
()
docs/assets/plugins/bootstrap/js/bootstrap.js:34
↓ 1 callersFunctiontry_update_session
()
nlu/pipe/utils/predict_helper.py:284
↓ 1 callersFunctionuninstall_lib
(pip_package_name)
nlu/utils/environment/authentication.py:41
↓ 1 callersFunctionunpack_HPO_codes
(row, k)
nlu/pipe/extractors/extractor_methods/helper_extractor_methods.py:74
↓ 1 callersMethodunpack_and_apply_extractors
1. Unpack SDF to PDF with Spark NLP Annotator Dictionaries 2. Get the extractor configs for the corresponding Annotator classes
nlu/pipe/pipeline.py:272
↓ 1 callersMethodupdate_bad_storage_refs
Some models have bad storage refs. The list of these bad models is defined by nlu.spellbook.Spellbook.bad_storage_refs. The correct s
nlu/pipe/utils/pipe_utils.py:31
↓ 1 callersMethodupdate_converter_storage_refs_and_cols
Storage ref of converters is initially empty string, i.e. '' . This method checks if any convertable embeddings are provided, if yes it will
nlu/pipe/utils/pipe_utils.py:625
↓ 1 callersFunctionuse_first_row_as_column_names
(df)
nlu/pipe/extractors/extractor_methods/ocr_extractors.py:48
↓ 1 callersFunctionuse_first_row_as_column_names_for_list_of_dfs
(pd_tables)
nlu/pipe/extractors/extractor_methods/ocr_extractors.py:56
↓ 1 callersFunctionut
(e,t,n)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersMethodvalidate_OCR_compatible_inputs
Validate for input data that it contains a path pointing to file or jsl_folder
nlu/pipe/utils/ocr_data_conversion_utils.py:17
↓ 1 callersMethodvalidate_paths
Validate for input data that it contains a path pointing to file or folder of audio fila readable with librosa
nlu/pipe/utils/audio_data_conversion_utils.py:19
↓ 1 callersFunctionvalidate_predictions
(df)
tests/utils/test_utils.py:211
↓ 1 callersFunctionverify_model_licensed
Load a licensed model_anno_obj from HDD
nlu/utils/environment/offline_load_utils_licensed.py:5
↓ 1 callersMethodvisualize_ner
( pipe, # Nlu component_list text: str, ner_tags: Optional[List[str]] = N
nlu/pipe/viz/streamlit_viz/streamlit_dashboard_OS.py:387
↓ 1 callersMethodvisualize_ner
( pipe, # Nlu component_list text:str, ner_tags: Optional[List[str]] = Non
nlu/pipe/viz/streamlit_viz/viz_building_blocks/ner.py:10
↓ 1 callersMethodviz_HC
Vizualize licensed component_to_resolve
nlu/pipe/viz/vis_utils.py:39
↓ 1 callersMethodviz_OS
Vizualize open source component_to_resolve
nlu/pipe/viz/vis_utils.py:23
↓ 1 callersMethodviz_assertion
Viz relation result. Set label colors by specifying hex codes, i.e. viz_colors={'TREATMENT':'#008080', 'problem':'#800080'}
nlu/pipe/viz/vis_utils_HC.py:199
↓ 1 callersMethodviz_relation
Viz relation result. Set label colors by specifying hex codes, i.e. viz_colors={'TREATMENT':'#800080', 'PROBLEM':'#77b5fe'}
nlu/pipe/viz/vis_utils_HC.py:167
↓ 1 callersMethodviz_resolution
Viz dep result. Set label colors by specifying hex codes, i.e. viz_colors={'TREATMENT':'#800080', 'PROBLEM':'#77b5fe'}
nlu/pipe/viz/vis_utils_HC.py:119
↓ 1 callersMethodviz_streamlit
Display Viz in streamlit
nlu/pipe/pipeline.py:694
↓ 1 callersMethodviz_streamlit_classes
( self, # nlu component_list text: Union[str, list, pd.DataFrame, pd.Series, List[str
nlu/pipe/pipeline.py:772
↓ 1 callersMethodviz_streamlit_dashboard
Visualize either individual building blocks for streamlit or a full UI to experiment and explore models with
nlu/pipe/viz/streamlit_viz/streamlit_dashboard_OS.py:24
↓ 1 callersMethodviz_streamlit_dep_tree
( self, # nlu component_list text: str = 'Billy likes to swim', title: Op
nlu/pipe/pipeline.py:796
↓ 1 callersMethodviz_streamlit_entity_embed_manifold
(self, default_texts: List[str] = ("Donald Trump likes to visit Ne
nlu/pipe/pipeline.py:975
↓ 1 callersMethodviz_streamlit_ner
( self, # Nlu component_list text: str = 'Donald Trump from America and Angela Merkel
nlu/pipe/pipeline.py:814
↓ 1 callersMethodviz_streamlit_sentence_embed_manifold
(self, default_texts: List[str] = (
nlu/pipe/pipeline.py:925
↓ 1 callersMethodviz_streamlit_token
( self, text: str = 'NLU and Streamlit go together like peanutbutter and jelly',
nlu/pipe/pipeline.py:744
↓ 1 callersMethodviz_streamlit_word_embed_manifold
(self, default_texts: List[str] = (
nlu/pipe/pipeline.py:875
↓ 1 callersMethodviz_streamlit_word_embed_manifold
( pipe, # nlu component_list default_texts: List[str] = ( "Donald Trump l
nlu/pipe/viz/streamlit_viz/streamlit_dashboard_OS.py:229
↓ 1 callersMethodviz_streamlit_word_similarity
( self, # nlu component_list texts: Union[Tuple[str, str], List[str]] = (
nlu/pipe/pipeline.py:842
↓ 1 callersFunctionwrap_with_st_cache_if_available_and_set_layout_to_wide
Wrap function with ST cache method if streamlit is importable
nlu/__init__.py:430
↓ 1 callersFunctionzip_and_explode
Returns a new dataframe, where columns in cols_to_explode should have all array elements. :param df: Dataframe to explode columns on. Each co
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:372
↓ 1 callersFunctionzipp
(l)
nlu/pipe/extractors/extractor_methods/helper_extractor_methods.py:25
FunctionAffix
(element, options)
docs/assets/plugins/bootstrap/js/bootstrap.js:2217
FunctionAlert
(el)
docs/assets/plugins/bootstrap/js/bootstrap.js:95
FunctionB
()
docs/assets/plugins/jquery-3.6.0.min.js:2
FunctionButton
(element, options)
docs/assets/plugins/bootstrap/js/bootstrap.js:189
FunctionCarousel
(element, options)
docs/assets/plugins/bootstrap/js/bootstrap.js:310
← previousnext →401–500 of 1,193, ranked by callers