MCPcopy Create free account

hub / github.com/JohnSnowLabs/nlu / functions

Functions1,193 in github.com/JohnSnowLabs/nlu

↓ 2 callersFunctionk
(a)
docs/assets/plugins/jquery-scrollTo/jquery.scrollTo.min.js:7
↓ 2 callersFunctionload
(type, urls, callback)
docs/_includes/scripts/lib/lazyload.js:93
↓ 2 callersMethodload_classifier_dl_dataset
(self)
tests/nlu_core_tests/training_tests/classifier_dl_tests.py:113
↓ 2 callersMethodload_ner_train_dataset_and_get_path
(self)
tests/nlu_core_tests/training_tests/ner_tests.py:73
↓ 2 callersFunctionlog_and_validate
(df, test_group)
tests/utils/test_utils.py:27
↓ 2 callersFunctionlog_process
(result: subprocess.CompletedProcess)
tests/run_tests.py:54
↓ 2 callersFunctionlog_verbose_error
(err)
nlu/__init__.py:483
↓ 2 callersFunctionm
(a)
docs/assets/plugins/jquery-match-height/jquery.matchHeight-min.js:9
↓ 2 callersFunctionmoveActiveIndex
(direction)
docs/_includes/search-providers/default/search.js:96
↓ 2 callersFunctionnlu_ref_to_nlp_metadata
For given NLU ref, returns is_pipe, license_type :return: lang, nlu_ref, nlp_ref, license_type, is_pipe
nlu/pipe/utils/resolution/nlu_ref_utils.py:51
↓ 2 callersMethodpad_duplicate_tokens
For every duplicate token in input list, ads N whitespaces for the Nth duplicate
nlu/pipe/viz/streamlit_viz/streamlit_viz_tracker.py:21
↓ 2 callersFunctionparse_language_from_nlu_ref
Parse a ISO language identifier from a NLU reference which can be used to load a Spark NLP model_anno_obj
nlu/pipe/utils/resolution/nlu_ref_utils.py:23
↓ 2 callersMethodpdf_to_pdf
(data, raw_text_column)
nlu/pipe/utils/data_conversion_utils.py:383
↓ 2 callersMethodpdf_to_sdf
Casting pandas to spark and add index col
nlu/pipe/utils/data_conversion_utils.py:159
↓ 2 callersFunctionpe
(e,t)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 2 callersMethodprint_all_model_kinds_for_action
(action)
nlu/discovery.py:133
↓ 2 callersMethodprint_all_model_kinds_for_action_and_lang
(lang, action)
nlu/discovery.py:149
↓ 2 callersMethodprint_all_nlu_components_for_lang
Print all NLU components available for a language Spark NLP pointer
nlu/discovery.py:65
↓ 2 callersMethodprint_component_types
Prints all unique component_to_resolve types in NLU
nlu/discovery.py:121
↓ 2 callersMethodprint_trainable_components
# todo update Print every trainable Algorithm/Model :return: None
nlu/discovery.py:159
↓ 2 callersMethodquestion_str_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:102
↓ 2 callersMethodquestion_tuple_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:115
↓ 2 callersMethodremove_storage_ref_from_features
Clean storage ref from every str in list
nlu/pipe/utils/component_utils.py:234
↓ 2 callersFunctionrender
()
docs/_includes/scripts/lib/toc.js:45
↓ 2 callersMethodsatisfy_dependencies
Feature Dependency Resolution Algorithm. For a given pipeline with N components, builds a DAG in reverse and satisfy each of their dependenci
nlu/pipe/pipe_logic.py:294
↓ 2 callersMethodsdf_to_sdf
No casting, Spark to Spark. Just add index col
nlu/pipe/utils/data_conversion_utils.py:40
↓ 2 callersFunctionsearchKey
(key)
docs/_includes/pageview-providers/leancloud/leancloud.js:24
↓ 2 callersMethodset_input
(self, input_cols: Union[str, List[str]])
nlu/pipe/nlu_component.py:162
↓ 2 callersFunctionstopBodyScrolling
(bool)
docs/_includes/scripts/components/sidebar.js:15
↓ 2 callersFunctiontagSelect
(tag/*raw tag*/, target)
docs/_includes/scripts/archieve.js:78
↓ 2 callersFunctiontop
()
docs/_includes/scripts/lib/affix.js:31
↓ 2 callersFunctionu
()
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 2 callersFunctionupdateResultItems
()
docs/_includes/search-providers/default/search.js:91
↓ 2 callersMethodverify_all_labels_exist
(self, dataset)
nlu/pipe/pipeline.py:108
↓ 2 callersMethodvisualize_classes
( pipe, # nlu component_list text: Union[str, list, pd.DataFrame, pd.Series, List[str
nlu/pipe/viz/streamlit_viz/streamlit_dashboard_OS.py:429
↓ 2 callersMethodvisualize_dep_tree
( pipe, # nlu component_list text: str = 'Billy likes to swim', title: Op
nlu/pipe/viz/streamlit_viz/streamlit_dashboard_OS.py:280
↓ 2 callersMethodvisualize_tokens_information
( pipe, # nlu component_list text: str, title: Optional[str] = "Token Fea
nlu/pipe/viz/streamlit_viz/streamlit_dashboard_OS.py:347
↓ 2 callersMethodviz_dep
Viz dep result
nlu/pipe/viz/vis_utils_HC.py:75
↓ 2 callersMethodviz_ner
Infer columns required for ner viz and then viz it. viz_colors : set label colors by specifying hex codes , i.e. viz_colors = {'LOC':'#80008
nlu/pipe/viz/vis_utils_HC.py:30
↓ 1 callersFunctionAt
(n,e,r,i)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersFunctionCe
(d,h,g,v,y,e)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersMethodRAW_HTML_link
(text,url,CSS_class)
nlu/pipe/viz/streamlit_viz/streamlit_viz_tracker.py:32
↓ 1 callersFunctionYe
(e,t,n)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersMethod__configure_light_pipe_usage__
(self, data_instances, use_multi=True, force=False)
nlu/pipe/pipeline.py:1011
↓ 1 callersFunction__db_endpoint_predict__
1) parse pred params from first row maybe 2) serialize/deserialize img
nlu/pipe/utils/predict_helper.py:231
↓ 1 callersMethod__get_finisher_conf
returns a dict where key=col name and value=FinisherExtractorConfig for that col for pipe and finisher. For finisher we need to know
nlu/pipe/pipeline.py:1026
↓ 1 callersMethod__init__
(self, classname="com.johnsnowlabs.nlp.annotators.ner.MedicalNerModel", java_model=None)
nlu/finance.py:30
↓ 1 callersFunction__output_parser
(pipeline_model, data, parser_config)
nlu/pipe/utils/predict_helper.py:121
↓ 1 callersFunction__predict_audio_spark
Check if there are any OCR components in the Pipe. If yes, we verify data contains pointer to jsl_folder or image files. If y
nlu/pipe/utils/predict_helper.py:193
↓ 1 callersFunction__predict_ocr_spark
Check if there are any OCR components in the Pipe. If yes, we verify data contains pointer to jsl_folder or image files. If y
nlu/pipe/utils/predict_helper.py:139
↓ 1 callersFunction__predict_standard_spark_only_embed
(pipe, data, return_spark_df, partition)
nlu/pipe/utils/predict_helper.py:259
↓ 1 callersMethod_get_uid_payload
(self)
nlu/pipe/pipeline.py:462
↓ 1 callersFunction_rows
(elements)
docs/assets/plugins/jquery-match-height/jquery.matchHeight.js:21
↓ 1 callersMethodadd_chunk_embedding_converter
Return a Word to CHUNK Embedding converter for a given Component. The input cols with match the Sentence Embedder ones The converter is a
nlu/pipe/pipe_logic.py:228
↓ 1 callersMethodadd_sentence_detector_to_pipe_if_required
1. For Tabla-QA the Question Tapas Col should originate from a doc type -> doc_question -> sent_que
nlu/pipe/utils/pipe_utils.py:779
↓ 1 callersMethodadd_sentence_embedding_converter
Return a Word to Sentence Embedding converter for a given Component. The input cols with match the Sentence Embedder ones The converter i
nlu/pipe/pipe_logic.py:208
↓ 1 callersMethodadd_tokenizer_to_pipe_if_missing
add tokenizer to pipe if it is missing :param pipe: pipe :return: Pipe with tokenizer if missing
nlu/pipe/utils/pipe_utils.py:461
↓ 1 callersFunctionanno_class_to_jsl_id
Returns JSL-Anno-ID and default license type for given anno_class name. Note that an anno which maps to a component with default OS_license, m
nlu/universe/component_universes.py:228
↓ 1 callersMethodare_producer_consumer_matches
Check for embedding_consumer and embedding_producer if they match storage_ref and output level wise wise
nlu/pipe/utils/component_utils.py:211
↓ 1 callersFunctionauth
Authenticate environment for JSL Licensed models Installs NLP-Healthcare if not in environment detected Either provide path to spark_nlp_for_
nlu/__init__.py:266
↓ 1 callersFunctionauthenticate_enviroment_HC_and_OCR
Set Secret environ variables for Spark Context
nlu/utils/environment/authentication.py:163
↓ 1 callersFunctionbindTestOptions
()
docs/assets/plugins/jquery-match-height/test.js:11
↓ 1 callersFunctionbottom
()
docs/_includes/scripts/lib/affix.js:49
↓ 1 callersFunctioncallbackRemove
()
docs/assets/plugins/bootstrap/js/bootstrap.js:1130
↓ 1 callersMethodcheck_and_fix_component_order
This method takes care that the order of components is the correct in such a way,that the pipeline can be iteratively processed by spark NLP.
nlu/pipe/pipe_logic.py:514
↓ 1 callersMethodcheck_and_fix_component_output_column_name_satisfaction
This function verifies that every input and output column name of a component_to_resolve is satisfied. If some output names are missi
nlu/pipe/pipe_logic.py:374
↓ 1 callersMethodcheck_dependencies_satisfied
Check if all dependencies are satisfied.
nlu/pipe/pipe_logic.py:268
↓ 1 callersMethodcheck_if_all_conversions_satisfied
Check if all dependencies are satisfied.
nlu/pipe/pipe_logic.py:261
↓ 1 callersFunctioncheck_if_nlu_ref_is_licensed
check if a nlu_ref is pointing to a licensed or open source model_anno_obj. This works by just checking if the NLU ref points to a healthcare mode
nlu/pipe/utils/resolution/nlu_ref_utils.py:11
↓ 1 callersFunctioncheck_if_secret_missmatch_and_uninstall_if_bad
Check if OCR/Healthcare lib installed version match up with the secrets provided. If not, this will uninstall the missmaching library :param m
nlu/utils/environment/authentication.py:47
↓ 1 callersMethodcheck_if_storage_ref_is_satisfied_or_get_conversion_candidate
Check if any other component_to_resolve in the pipeline has same storage ref as the input component_to_resolve. Returns 1. If there is a candi
nlu/pipe/pipe_logic.py:39
↓ 1 callersMethodcheck_same_as_last_iteration
(last_missing_components, last_missing_storage_refs, last_components_for_
nlu/pipe/pipe_logic.py:284
↓ 1 callersFunctionclearMenus
(e)
docs/assets/plugins/bootstrap/js/bootstrap.js:781
↓ 1 callersMethodcomponent_has_embeddings_requirement
Check for the input component_to_resolve, wether it depends on some embedding. Returns True if yes, otherwise False. :param component
nlu/pipe/utils/component_utils.py:86
↓ 1 callersMethodconfig_chunk_embed_converter
For a Chunk to be added to a pipeline, configure its input/output and set storage ref to amtch the storage ref and enfore storage ref notation
nlu/pipe/utils/component_utils.py:17
↓ 1 callersMethodconfigure_component_output_levels_to_sentence
Configure component_list components to output level document. Substitute every occurrence of <document> to <sentence> for every compo
nlu/pipe/utils/pipe_utils.py:373
↓ 1 callersMethodcontains_t5_or_gpt
(pipe: NLUPipeline)
nlu/pipe/utils/pipe_utils.py:775
↓ 1 callersMethodconvert_embeddings_to_np
convert all the columns in a pandas df to numpy :param pdf: Pandas Dataframe whose embedding column will be converted to numpy array
nlu/pipe/pipeline.py:392
↓ 1 callersMethodcreateParserDictionary
(self)
nlu/pipe/pipeline.py:1062
↓ 1 callersFunctioncreate_path_if_not_exist
(path)
tests/utils/test_utils.py:154
↓ 1 callersMethoddata_to_spark_audio_df
(data, sample_rate, spark)
nlu/pipe/utils/audio_data_conversion_utils.py:57
↓ 1 callersFunctionde
(t)
docs/assets/plugins/jquery-3.6.0.min.js:2
↓ 1 callersMethoddeduct_component_names
Deduct a meaningful name for Embeddings, classifiers, resolvesr, relation extractors, etc.. Will return a dict that maps every Annotator Class
nlu/pipe/col_substitution/col_name_substitution_utils.py:189
↓ 1 callersFunctiondefault_full_config
(output_col_prefix='DEFAULT')
nlu/pipe/extractors/extractor_configs_HC.py:33
↓ 1 callersFunctiondefault_get_nothing
(output_col_prefix)
nlu/pipe/extractors/extractor_configs_HC.py:16
↓ 1 callersFunctiondefault_only_result_config
(output_col_prefix)
nlu/pipe/extractors/extractor_configs_HC.py:24
↓ 1 callersFunctiondefer
(method)
docs/_includes/scripts/programmingLanguageSwitcherScalaPython.js:41
↓ 1 callersFunctiondefer
(method)
docs/_includes/scripts/programmingLanguageSwitcherJavaScalaPython.js:64
↓ 1 callersFunctiondeserialize
(binary_image, path)
nlu/pipe/utils/predict_helper.py:32
↓ 1 callersFunctiondisable_verbose
()
nlu/__init__.py:411
↓ 1 callersMethoddisplay_infos
()
nlu/pipe/viz/streamlit_viz/streamlit_viz_tracker.py:72
↓ 1 callersMethoddrop_irrelevant_cols
Takes in a list of column names removes the elements which are irrelevant to the current output level. This will be run before return
nlu/pipe/pipeline.py:427
↓ 1 callersMethoddump_data
(self)
tests/nlu_core_tests/component_tests/context_parser_tests.py:98
↓ 1 callersMethoddump_dict_to_json_file
Generate json with dict contexts at target path
tests/nlu_core_tests/component_tests/context_parser_tests.py:78
↓ 1 callersFunctione
()
docs/assets/plugins/bootstrap/js/bootstrap.min.js:6
↓ 1 callersFunctionenable_streamlit_caching
()
nlu/__init__.py:418
↓ 1 callersFunctionenable_verbose
()
nlu/__init__.py:404
↓ 1 callersFunctionend
(type, url)
docs/_includes/scripts/lib/lazyload.js:67
↓ 1 callersMethodenforce_AT_schema_on_NER_processors_and_add_missing_NER_converters
For every NER provider and consumer, enforce that their output col is named <pipe_prediction_output_level>@storage_ref for output_levels word,
nlu/pipe/utils/pipe_utils.py:221
↓ 1 callersMethodenforce_AT_schema_on_embedding_processors
For every embedding provider and consumer, enforce that their output col is named <pipe_prediction_output_level>@storage_ref for output_levels
nlu/pipe/utils/pipe_utils.py:316
← previousnext →201–300 of 1,193, ranked by callers