MCPcopy Create free account

hub / github.com/JohnSnowLabs/nlu / functions

Functions1,193 in github.com/JohnSnowLabs/nlu

Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/token_longformer/token_longformer.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/token_bert/token_bert.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/image_classification_vit/vit_image_classifier.py:14
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/image_classification_vit/convnext_image_classification.py:14
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/span_roberta/span_roberta.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/bart_zero_shot_classification/bart_zero_shot.py:13
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/seq_camembert/seq_camembert.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/asr_hubert/hubert.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/image_classification_swin/swin.py:14
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/classifier_dl/classifier_dl.py:10
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/classifiers/seq_distilbert_medical/seq_distilbert_medical_classifier.py:7
Methodget_pretrained_model
(name,lang, bucket=None)
nlu/components/sentence_detectors/deep_sentence_detector/deep_sentence_detector.py:13
Methodget_pretrained_model
(name, language, bucket='clinical/models')
nlu/components/resolutions/sentence_entity_resolver/sentence_resolver.py:10
Methodget_pretrained_model
(name, language, bucket='clinical/models')
nlu/components/resolutions/chunk_entity_resolver/chunk_resolver.py:5
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/lemmatizers/lemmatizer/spark_nlp_lemmatizer.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/med_summarizer/med_summarizer.py:8
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/bart_transformer/bart_transformer.py:8
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/m2m100_transformer/m2m100_transformer.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/med_text_generator/med_text_generator.py:8
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/marian/marian.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/openai_completion/openai_completion.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/gpt2/gpt2.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/seq2seqs/tapas_qa/tapas_qa.py:12
Methodget_pretrained_model
(name, language, bucket='clinical/models')
nlu/components/relation_extractors/relation_extractor_dl/relation_extractor_dl.py:13
Methodget_pretrained_model
(name, language, bucket='clinical/models')
nlu/components/relation_extractors/relation_extractor/relation_extractor.py:10
Methodget_pretrained_model
(name, language, bucket='clinical/models')
nlu/components/relation_extractors/zero_shot_relation_extractor/zero_shot_relation_extractor.py:13
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/matchers/regex_matcher/regex_matcher.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/matchers/text_matcher/text_matcher.py:12
Methodget_pretrained_model
(name, language, bucket='clinical/models')
nlu/components/deidentifiers/deidentifier/deidentifier.py:12
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/stopwordscleaners/stopwordcleaner/nlustopwordcleaner.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/normalizers/normalizer/spark_nlp_normalizer.py:11
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/chunkers/chunk_mapper/chunk_mapper.py:10
Methodget_pretrained_model
(name, language, bucket=None)
nlu/components/coref/coref_bert/coref_bert.py:12
Functionget_sample_pdf_with_extra_cols_and_entities
()
tests/utils/test_utils.py:89
Functionget_sample_pdf_with_labels
()
tests/utils/test_utils.py:44
Functionget_sample_sdf
()
tests/utils/test_utils.py:53
Methodget_trainable_model
()
nlu/components/embeddings/word2vec/word2vec.py:17
Methodget_trainable_model
()
nlu/components/classifiers/classifier_dl/classifier_dl.py:19
Methodget_trainable_model
()
nlu/components/deidentifiers/deidentifier/deidentifier.py:20
Methodget_trainable_model
()
nlu/components/chunkers/contextual_parser/contextual_parser.py:11
Methodglob_files_of_accepted_type
Get all paths which point to correct file types from iterable paths which can contain file and jsl_folder paths 1. paths point to a file which
nlu/pipe/utils/audio_data_conversion_utils.py:84
Functionh
()
docs/assets/plugins/bootstrap/js/bootstrap.min.js:6
FunctionhandleKeyup
(e)
docs/_includes/scripts/lib/modal.js:48
FunctionhandleModalChange
(visible)
docs/_includes/scripts/components/lightbox.js:39
FunctionhandleModalChange
(visible)
docs/_includes/scripts/components/search.js:25
Methodhas_component_storage_ref_or_anno_storage_ref
Storage ref is either on the model_anno_obj or nlu component_to_resolve defined
nlu/pipe/utils/resolution/storage_ref_utils.py:39
Functionhealthcare_version_is_missmatch
Check if installed Spark NLP healthcare version is the same as the Healthcare secret :param secret_version: healthcare secret version :return:
nlu/utils/environment/authentication.py:25
Functionincrease
(key, title, callback)
docs/_includes/pageview-providers/leancloud/leancloud.js:54
Functionis_authorized_environment
Check if auth secrets are set in environment
nlu/utils/environment/authentication.py:232
Methodis_converter_component_resolution_reference
(reference: str)
nlu/pipe/utils/pipe_utils.py:368
Functionis_env_pyspark_2_x
()
nlu/utils/environment/env_utils.py:50
Functionis_env_pyspark_3_2
()
nlu/utils/environment/env_utils.py:23
Methodis_leaf_node
Check if a component_to_resolve is a leaf in the DAG. We verify by checking if any other_c is feeding from os_components. If yes, it i
nlu/pipe/utils/pipe_utils.py:549
Methodis_matching_level
Check for embedding consumer if input level matches up outputlevel of consumer
nlu/pipe/pipe_logic.py:655
Methodis_storage_ref_match
Check for 2 components, if one provides the embeddings for the other. Makes sure that pipe_prediction_output_level matches up (chunk/sent/tok/embeds)
nlu/pipe/pipe_logic.py:624
Methodlist_all_components_of_language
(component_lang='ger')
nlu/info.py:81
Methodlist_all_components_of_languageand_type
(component_lang='ger', component_type='embeddings')
nlu/info.py:85
Methodlist_all_components_of_type
(self, component_type='embeddings')
nlu/info.py:77
Methodlist_avaiable_output_types
()
nlu/info.py:93
Functionload
Load either a prebuild pipeline or a set of components identified by a whitespace seperated list of components You must call nlu.auth() BEFOR
nlu/__init__.py:179
MethodloadSavedModel
(ner_model_path, folder, spark_session)
nlu/finance.py:128
Methodload_pandas_dataset
(self)
tests/nlu_core_tests/pandas_tests.py:98
Functionme
()
docs/assets/plugins/jquery-3.6.0.min.js:2
Functionmeta_NER_config
Extracts NER tokens withouth positions, just the IOB tags,confidences and classified tokens
nlu/pipe/extractors/extractor_configs_OS.py:98
Functionmeta_extract_language_classifier_max_confidence
Extract the language classificationw ith highest confidence and drop the others
nlu/pipe/extractors/extractor_methods/helper_extractor_methods.py:13
Functionmodal
(options)
docs/_includes/scripts/lib/modal.js:7
Functionmodel_id
(model_to_test: NluTest)
tests/base_model_test.py:6
Functionne
(e,t)
docs/assets/plugins/jquery-3.6.0.min.js:2
Methodnlu_extract_storage_ref_nlp_model
Extract storage ref from a NLU component_to_resolve which embellished a Spark NLP Annotator
nlu/pipe/utils/resolution/storage_ref_utils.py:62
Functionnlu_ref_to_nlp_ref
(nlu_ref)
nlu/pipe/utils/resolution/nlu_ref_utils.py:46
Methodnormalize_matrix
(m)
nlu/pipe/viz/streamlit_viz/viz_building_blocks/word_similarity.py:155
Functionocr_version_is_missmatch
Check if installed OCR version is the same as the OCR secret :param secret_version: ocr secret version :return: True if missmatch, False if ve
nlu/utils/environment/authentication.py:9
Functionoe
()
docs/assets/plugins/jquery-3.6.0.min.js:2
FunctiononInputNotEmpty
(val)
docs/_includes/search-providers/default/search.js:82
Functionone_test_per_lib
()
tests/base_model_test.py:14
Functionpad_same_level_cols
We must ensure that the cols which are going to be exploded have all the same amount of elements. To ensure this, we apply this methods on the col
nlu/pipe/extractors/extractor_methods/base_extractor_methods.py:351
Functionpageview
(_AV ,options)
docs/_includes/pageview-providers/leancloud/leancloud.js:9
Functionpartially_implemented_substitutor
Fetched fields are: - entities@<storage_ref>_results - entities@<storage_ref>_<metadata> - entities@<storage_ref>_entity
nlu/pipe/col_substitution/col_substitution_OS.py:11
MethodprintPipelineSchema
(self)
nlu/pipe/pipeline.py:1067
Functionprint_all_languages
Print all languages which are available in NLU Spark NLP pointer
nlu/__init__.py:444
Functionprint_all_model_kinds_for_action
(action)
nlu/__init__.py:466
Functionprint_all_model_kinds_for_action_and_lang
(lang, action)
nlu/__init__.py:470
Functionprint_all_nlu_components_for_lang
Print all NLU components available for a language Spark NLP pointer
nlu/__init__.py:449
Functionprint_component_types
Prints all unique component_to_resolve types in NLU
nlu/__init__.py:461
Functionprint_components
Print every single NLU reference for models and pipeliens and their Spark NLP pointer :param lang: Language requirements for the components filter
nlu/__init__.py:454
Functionprint_trainable_components
Print every trainable Algorithm/Model
nlu/__init__.py:474
Methodpythonify_spark_ocr_dataframe
(self, processed, output_path=[], file_paths=[])
nlu/pipe/pipeline.py:315
Functionqe
(e)
docs/assets/plugins/jquery-3.6.0.min.js:2
Methodresolve_nlu_ref_to_dataset
(self,nlu_ref)
tests/datasets/dataset_downloader.py:64
Functionresolver_conifg_with_metadata
(output_col_prefix='DEFAULT')
nlu/pipe/extractors/extractor_configs_HC.py:113
Methodreturn_json_entry
Resolves a Json entry for annlu_refrence. :param nlu_ref: What nlp_refrence to resolve :return: Json entry of that nlu reference
nlu/utils/modelhub/modelhub_utils.py:67
FunctionscrollToAnchor
(anchor, duration, callback)
docs/_includes/scripts/lib/scroll-to.js:4
Methodsdf_to_pdf
(data, raw_text_column)
nlu/pipe/utils/data_conversion_utils.py:397
Functionserialize
(img_path)
nlu/pipe/utils/predict_helper.py:27
MethodsetConfigProtoBytes
Sets configProto from tensorflow, serialized into byte array. Parameters ---------- b : List[str] ConfigProto fro
nlu/finance.py:67
MethodsetInferenceBatchSize
Sets number of sentences to process in a single batch during inference Parameters ---------- value : int number of
nlu/finance.py:99
MethodsetLabelCasing
Setting all labels of the NER models upper/lower case. values upper|lower Parameters ---------- value : str Settin
nlu/finance.py:109
Methodset_column_values_on_components_from_pretrained_pipe_from_disk_data
Since output/input cols cannot be fetched from Annotators via get input/output col reliably, we must check annotator data to find them Expects
nlu/pipe/utils/pipe_utils.py:129
Functionset_dataset_directory
()
tests/datasets/dataset_downloader.py:72
Methodset_output
(self, output_cols: Union[str, List[str]])
nlu/pipe/nlu_component.py:175
← previousnext →901–1,000 of 1,193, ranked by callers