Skip to content

Commit

Permalink
Legal 1.7.0rc0.1 (#13470)
Browse files Browse the repository at this point in the history
* 2023-01-26-legclf_agreement_of_purchase_and_sale_bert_en (#13418)

* Add model 2023-01-26-legclf_agreement_of_purchase_and_sale_bert_en

* Update 2023-01-26-legclf_agreement_of_purchase_and_sale_bert_en.md

* Add model 2023-01-26-legclf_confidential_treatment_bert_en

* Update 2023-01-26-legclf_confidential_treatment_bert_en.md

* Add model 2023-01-26-legclf_form_of_indemnification_agreement_bert_en

* Update 2023-01-26-legclf_form_of_indemnification_agreement_bert_en.md

* Add model 2023-01-26-legclf_independent_contractor_agreement_bert_en

* Update 2023-01-26-legclf_independent_contractor_agreement_bert_en.md

* Add model 2023-01-26-legclf_non_competition_agreement_bert_en

* Update 2023-01-26-legclf_non_competition_agreement_bert_en.md

* Add model 2023-01-26-legclf_principal_underwriting_agreement_bert_en

* Update 2023-01-26-legclf_principal_underwriting_agreement_bert_en.md

* Add model 2023-01-26-legclf_settlement_agreement_and_mutual_release_bert_en

* Update 2023-01-26-legclf_settlement_agreement_and_mutual_release_bert_en.md

* Add model 2023-01-26-legclf_shareholder_services_agreement_bert_en

* Update 2023-01-26-legclf_shareholder_services_agreement_bert_en.md

* Add model 2023-01-26-legclf_term_loan_credit_agreement_bert_en

* Update 2023-01-26-legclf_term_loan_credit_agreement_bert_en.md

* Add model 2023-01-26-legclf_trademark_license_agreement_bert_en

* Update 2023-01-26-legclf_trademark_license_agreement_bert_en.md

Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>

* 2023-01-27-legclf_termination_for_convenience_clause_en (#13425)

* Add model 2023-01-27-legclf_termination_for_convenience_clause_en

* Update 2023-01-27-legclf_termination_for_convenience_clause_en.md

* Add model 2023-01-27-legclf_indemnification_procedures_clause_en

* Update 2023-01-27-legclf_indemnification_procedures_clause_en.md

* Add model 2023-01-27-legclf_absence_of_litigation_clause_en

* Update 2023-01-27-legclf_absence_of_litigation_clause_en.md

* Add model 2023-01-27-legclf_capital_expenditures_clause_en

* Update 2023-01-27-legclf_capital_expenditures_clause_en.md

* Add model 2023-01-27-legclf_application_of_trust_money_clause_en

* Update 2023-01-27-legclf_application_of_trust_money_clause_en.md

* Add model 2023-01-27-legclf_deposit_of_redemption_price_clause_en

* Update 2023-01-27-legclf_deposit_of_redemption_price_clause_en.md

* Add model 2023-01-27-legclf_disclosure_of_information_clause_en

* Update 2023-01-27-legclf_disclosure_of_information_clause_en.md

* Add model 2023-01-27-legclf_benefits_of_indenture_clause_en

* Update 2023-01-27-legclf_benefits_of_indenture_clause_en.md

* Add model 2023-01-27-legclf_satisfaction_and_discharge_of_indenture_clause_en

* Update 2023-01-27-legclf_satisfaction_and_discharge_of_indenture_clause_en.md

* Add model 2023-01-27-legclf_method_of_exercise_clause_en

* Update 2023-01-27-legclf_method_of_exercise_clause_en.md

Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>

* 2023-01-29-legclf_master_administrative_services_agreement_bert_en (#13427)

* Add model 2023-01-29-legclf_master_administrative_services_agreement_bert_en

* Add model 2023-01-29-legclf_standstill_agreement_bert_en

* Add model 2023-01-29-legclf_adoption_agreement_bert_en

* Add model 2023-01-29-legclf_compensation_agreement_bert_en

* Add model 2023-01-29-legclf_investment_advisory_and_management_agreement_bert_en

* Add model 2023-01-29-legclf_sublicense_agreement_bert_en

* Add model 2023-01-29-legclf_retirement_agreement_bert_en

* Add model 2023-01-29-legclf_noncompetition_agreement_bert_en

* Add model 2023-01-29-legclf_arrangement_agreement_bert_en

* Add model 2023-01-29-legclf_performance_share_award_agreement_bert_en

* Update 2023-01-29-legclf_standstill_agreement_bert_en.md

* Update 2023-01-29-legclf_adoption_agreement_bert_en.md

* Update 2023-01-29-legclf_arrangement_agreement_bert_en.md

* Update 2023-01-29-legclf_compensation_agreement_bert_en.md

* Update 2023-01-29-legclf_investment_advisory_and_management_agreement_bert_en.md

* Update 2023-01-29-legclf_master_administrative_services_agreement_bert_en.md

* Update 2023-01-29-legclf_noncompetition_agreement_bert_en.md

* Update 2023-01-29-legclf_performance_share_award_agreement_bert_en.md

* Update 2023-01-29-legclf_retirement_agreement_bert_en.md

* Update 2023-01-29-legclf_sublicense_agreement_bert_en.md

---------

Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>

* 2023-01-29-legclf_other_definitional_provisions_clause_en (#13428)

* Add model 2023-01-29-legclf_other_definitional_provisions_clause_en

* Add model 2023-01-29-legclf_due_authorization_clause_en

* Add model 2023-01-29-legclf_due_authorization_clause_en

* Add model 2023-01-29-legclf_assignment_and_subletting_clause_en

* Add model 2023-01-29-legclf_titles_and_subtitles_clause_en

* Add model 2023-01-29-legclf_no_material_adverse_effect_clause_en

* Add model 2023-01-29-legclf_subcontractors_clause_en

* Add model 2023-01-29-legclf_military_leave_clause_en

* Add model 2023-01-29-legclf_fringe_benefits_clause_en

* Add model 2023-01-29-legclf_cusip_numbers_clause_en

* Update 2023-01-29-legclf_due_authorization_clause_en.md

* Update 2023-01-29-legclf_assignment_and_subletting_clause_en.md

* Update 2023-01-29-legclf_cusip_numbers_clause_en.md

* Update 2023-01-29-legclf_fringe_benefits_clause_en.md

* Update 2023-01-29-legclf_military_leave_clause_en.md

* Update 2023-01-29-legclf_no_material_adverse_effect_clause_en.md

* Update 2023-01-29-legclf_other_definitional_provisions_clause_en.md

* Update 2023-01-29-legclf_subcontractors_clause_en.md

* Update 2023-01-29-legclf_titles_and_subtitles_clause_en.md

---------

Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>

* 2023-01-29-legclf_maintenance_of_insurance_clause_en (#13429)

* Add model 2023-01-29-legclf_maintenance_of_insurance_clause_en

* Update 2023-01-29-legclf_maintenance_of_insurance_clause_en.md

* Add model 2023-01-29-legclf_board_of_directors_clause_en

* Update 2023-01-29-legclf_board_of_directors_clause_en.md

* Add model 2023-01-29-legclf_reimbursement_of_expenses_clause_en

* Update 2023-01-29-legclf_reimbursement_of_expenses_clause_en.md

* Add model 2023-01-29-legclf_conditions_of_underwriters_obligations_clause_en

* Update 2023-01-29-legclf_conditions_of_underwriters_obligations_clause_en.md

* Add model 2023-01-29-legclf_quiet_enjoyment_clause_en

* Update 2023-01-29-legclf_quiet_enjoyment_clause_en.md

* Add model 2023-01-29-legclf_right_of_first_refusal_clause_en

* Update 2023-01-29-legclf_right_of_first_refusal_clause_en.md

* Add model 2023-01-29-legclf_waiver_of_subrogation_clause_en

* Update 2023-01-29-legclf_waiver_of_subrogation_clause_en.md

* Add model 2023-01-29-legclf_annual_bonus_clause_en

* Update 2023-01-29-legclf_annual_bonus_clause_en.md

* Add model 2023-01-29-legclf_business_expenses_clause_en

* Update 2023-01-29-legclf_business_expenses_clause_en.md

* Add model 2023-01-29-legclf_non_exclusivity_clause_en

* Update 2023-01-29-legclf_non_exclusivity_clause_en.md

---------

Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>

* 2023-01-30-legqa_roberta_cuad_large_en (#13430)

* Add model 2023-01-30-legqa_roberta_cuad_large_en

* Update 2023-01-30-legqa_roberta_cuad_large_en.md

* Update 2023-01-30-legqa_roberta_cuad_large_en.md

* Add model 2023-01-30-legqa_roberta_cuad_small_en

* Add model 2023-01-30-legqa_roberta_cuad_base_en

---------

Co-authored-by: josejuanmartinez <jjmcarrascosa@gmail.com>
Co-authored-by: Jose J. Martinez <36634572+josejuanmartinez@users.noreply.github.com>

* 2023-01-30-legner_roberta_zeroshot_cuad_base_en (#13431)

* Add model 2023-01-30-legner_roberta_zeroshot_cuad_base_en

* Add model 2023-01-30-legner_roberta_zeroshot_cuad_small_en

* Add model 2023-01-30-legner_roberta_zeroshot_cuad_large_en

---------

Co-authored-by: josejuanmartinez <jjmcarrascosa@gmail.com>

* Update 2023-01-30-legqa_roberta_cuad_base_en.md

* Update 2023-01-30-legqa_roberta_cuad_large_en.md

* Update 2023-01-30-legqa_roberta_cuad_small_en.md

* Add model 2023-01-31-legclf_bert_maud_en (#13444)

Co-authored-by: gadde5300 <gadde5300@gmail.com>

* 2023-02-02-legclf_sales_agreement_bert_en (#13460)

* Add model 2023-02-02-legclf_sales_agreement_bert_en

* Update 2023-02-02-legclf_sales_agreement_bert_en.md

* Add model 2023-02-02-legclf_second_supplemental_indenture_bert_en

* Update 2023-02-02-legclf_second_supplemental_indenture_bert_en.md

* Add model 2023-02-02-legclf_subordination_agreement_bert_en

* Update 2023-02-02-legclf_subordination_agreement_bert_en.md

* Add model 2023-02-02-legclf_forbearance_agreement_bert_en

* Update 2023-02-02-legclf_forbearance_agreement_bert_en.md

* Add model 2023-02-02-legclf_acquisition_agreement_bert_en

* Update 2023-02-02-legclf_acquisition_agreement_bert_en.md

* Add model 2023-02-02-legclf_private_placement_warrants_purchase_agreement_bert_en

* Update 2023-02-02-legclf_private_placement_warrants_purchase_agreement_bert_en.md

* Add model 2023-02-02-legclf_stock_pledge_agreement_bert_en

* Update 2023-02-02-legclf_stock_pledge_agreement_bert_en.md

* Add model 2023-02-02-legclf_third_supplemental_indenture_bert_en

* Update 2023-02-02-legclf_third_supplemental_indenture_bert_en.md

* Add model 2023-02-02-legclf_limited_liability_company_operating_agreement_bert_en

* Update 2023-02-02-legclf_limited_liability_company_operating_agreement_bert_en.md

* Add model 2023-02-02-legclf_nonstatutory_stock_option_agreement_bert_en

* Update 2023-02-02-legclf_nonstatutory_stock_option_agreement_bert_en.md

---------

Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>

* Add model 2023-02-02-legmulticlf_mnda_sections_en (#13462)

Co-authored-by: josejuanmartinez <jjmcarrascosa@gmail.com>

* Add model 2023-02-02-legpipe_ner_contract_doc_parties_alias_former_en (#13461)

Co-authored-by: gadde5300 <gadde5300@gmail.com>

* Sync Legal and Master (#13469)

* Updates doc with FINLEG 1.6.0

* Fixed some md files (#13400)

* Uptade ocr cards (#13407)

* 428 release candidate (#13406)

* SPARKNLP-726 Fix metadata in XXXForSequenceClassification results (#13396)

- This will fix the issue with optional key in metadata. This `"Some(POSITIVE)"` will be `"POSITIVE"`

* SPARKNLP-724 Adding configuration to skip light pipeline input validation (#13402)

* Bump version & update CHANGELOG [run doc]

* Update Scala and Python APIs

* Release Spark NLP 4.2.8 on Conda [skip test]

Co-authored-by: Danilo Burbano <37355249+danilojsl@users.noreply.github.com>
Co-authored-by: github-actions <action@github.com>

* update scala (#13412)

* remove {{ (#13413)

* Upd tab2 (#13416)

* remove {{

* remove {{

* add tabs fix (#13417)

* 4.2.8 Release Note Update (#13422)

* Update quickstart.md

* [skip ci] Commit to branch 4.2.8-healthcare-docs-f7c11b955d888f94fe5e10c9e818e887dc6addc0-10 (#13414)

Co-authored-by: jsl-builder <jsl-builder@johnsnowlabs.com>

* Delete 2022-07-07-bert_qa_legal_en_3_0.md

* Delete 2022-06-20-roberta_qa_legal_qa_en_3_0.md

* Delete 2022-06-06-bert_qa_bert_large_question_answering_finetuned_legal_en_3_0.md

* Delete 2022-12-02-roberta_qa_base_cuad_finetuned_en.md

* Delete 2022-12-02-roberta_qa_marshmellow77_base_cuad_en.md

* Delete 2022-06-20-roberta_qa_marshmellow77_roberta_base_cuad_en_3_0.md

* Delete 2022-06-20-roberta_qa_roberta_base_on_cuad_en_3_0.md

* Delete 2022-12-02-roberta_qa_base_on_cuad_en.md

* update image path (#13439)

* Update Input output (#13451)

* Fix the typo in docs

* Update DeIdentification.md (#13449)

* Update DeIdentification.md

* Update DeIdentification.md

* Updated AssertionDL md file

* rename some demos (#13458)

Old Title:	New Title:
Classify Self Report Age - Tweet	Classify Self-Reported Age from Posts
Classify Self-Reported Covid-19 Symptoms - Tweet	Classify Self-Reported Covid-19 Symptoms from Posts
Detect Adverse Drug Events in Tweet	Detect Adverse Drug Events from Posts
Classify Stance / Premise About Health Mandates in Tweets	Classify Stance About Public Health Mandates from Posts
Classify Self Report Vaccination Status - Tweet	Classify Self Report Vaccination Status from Posts

* Finance NLP 1.7.0rc0.1 (#13468)

* 2023-01-31-finclf_bert_broker_sentiment_analysis_en (#13446)

* Add model 2023-01-31-finclf_bert_broker_sentiment_analysis_en

* Update 2023-01-31-finclf_bert_broker_sentiment_analysis_en.md

* Update 2023-01-31-finclf_bert_broker_sentiment_analysis_en.md

---------

Co-authored-by: gadde5300 <gadde5300@gmail.com>
Co-authored-by: GADDE SAI SHAILESH <69344247+gadde5300@users.noreply.github.com>

* 2023-01-31-finclf_bert_broker_recommendation_en (#13445)

* Add model 2023-01-31-finclf_bert_broker_recommendation_en

* Update 2023-01-31-finclf_bert_broker_recommendation_en.md

---------

Co-authored-by: gadde5300 <gadde5300@gmail.com>
Co-authored-by: GADDE SAI SHAILESH <69344247+gadde5300@users.noreply.github.com>

* Add model 2023-02-01-finner_capital_calls_en (#13450)

Co-authored-by: josejuanmartinez <jjmcarrascosa@gmail.com>

* Add model 2023-02-03-finclf_customer_service_category_en (#13463)

Co-authored-by: bunyamin-polat <muhendisbp@gmail.com>

* Update 2023-02-03-finclf_customer_service_category_en.md

* 2023-02-03-finclf_customer_service_intent_type_en (#13465)

* Add model 2023-02-03-finclf_customer_service_intent_type_en

* Update 2023-02-03-finclf_customer_service_intent_type_en.md

---------

Co-authored-by: bunyamin-polat <muhendisbp@gmail.com>
Co-authored-by: Bünyamin Polat <78386903+bunyamin-polat@users.noreply.github.com>

* 2023-02-03-finmulticlf_customer_service_lin_features_en (#13466)

* Add model 2023-02-03-finmulticlf_customer_service_lin_features_en

* Update 2023-02-03-finmulticlf_customer_service_lin_features_en.md

* Update 2023-02-03-finmulticlf_customer_service_lin_features_en.md

---------

Co-authored-by: bunyamin-polat <muhendisbp@gmail.com>
Co-authored-by: Bünyamin Polat <78386903+bunyamin-polat@users.noreply.github.com>
Co-authored-by: Jose J. Martinez <36634572+josejuanmartinez@users.noreply.github.com>

* Sync finance with master (#13467)

* Updates doc with FINLEG 1.6.0

* Fixed some md files (#13400)

* Uptade ocr cards (#13407)

* 428 release candidate (#13406)

* SPARKNLP-726 Fix metadata in XXXForSequenceClassification results (#13396)

- This will fix the issue with optional key in metadata. This `"Some(POSITIVE)"` will be `"POSITIVE"`

* SPARKNLP-724 Adding configuration to skip light pipeline input validation (#13402)

* Bump version & update CHANGELOG [run doc]

* Update Scala and Python APIs

* Release Spark NLP 4.2.8 on Conda [skip test]

Co-authored-by: Danilo Burbano <37355249+danilojsl@users.noreply.github.com>
Co-authored-by: github-actions <action@github.com>

* update scala (#13412)

* remove {{ (#13413)

* Upd tab2 (#13416)

* remove {{

* remove {{

* add tabs fix (#13417)

* 4.2.8 Release Note Update (#13422)

* Update quickstart.md

* [skip ci] Commit to branch 4.2.8-healthcare-docs-f7c11b955d888f94fe5e10c9e818e887dc6addc0-10 (#13414)

Co-authored-by: jsl-builder <jsl-builder@johnsnowlabs.com>

* Delete 2022-07-07-bert_qa_legal_en_3_0.md

* Delete 2022-06-20-roberta_qa_legal_qa_en_3_0.md

* Delete 2022-06-06-bert_qa_bert_large_question_answering_finetuned_legal_en_3_0.md

* Delete 2022-12-02-roberta_qa_base_cuad_finetuned_en.md

* Delete 2022-12-02-roberta_qa_marshmellow77_base_cuad_en.md

* Delete 2022-06-20-roberta_qa_marshmellow77_roberta_base_cuad_en_3_0.md

* Delete 2022-06-20-roberta_qa_roberta_base_on_cuad_en_3_0.md

* Delete 2022-12-02-roberta_qa_base_on_cuad_en.md

* update image path (#13439)

* Update Input output (#13451)

* Fix the typo in docs

* Update DeIdentification.md (#13449)

* Update DeIdentification.md

* Update DeIdentification.md

* Updated AssertionDL md file

* rename some demos (#13458)

Old Title:	New Title:
Classify Self Report Age - Tweet	Classify Self-Reported Age from Posts
Classify Self-Reported Covid-19 Symptoms - Tweet	Classify Self-Reported Covid-19 Symptoms from Posts
Detect Adverse Drug Events in Tweet	Detect Adverse Drug Events from Posts
Classify Stance / Premise About Health Mandates in Tweets	Classify Stance About Public Health Mandates from Posts
Classify Self Report Vaccination Status - Tweet	Classify Self Report Vaccination Status from Posts

---------

Co-authored-by: Jose J. Martinez <jose.martinez@wayops.eu>
Co-authored-by: Damla Gurbaz <81505007+Damla-Gurbaz@users.noreply.github.com>
Co-authored-by: Aymane Chilah <a.chilah@hotmail.com>
Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>
Co-authored-by: Danilo Burbano <37355249+danilojsl@users.noreply.github.com>
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Lev <agsfer@gmail.com>
Co-authored-by: Cabir C <64752006+Cabir40@users.noreply.github.com>
Co-authored-by: jsl-builder <48132196+jsl-builder@users.noreply.github.com>
Co-authored-by: jsl-builder <jsl-builder@johnsnowlabs.com>
Co-authored-by: Vildan <64216738+Meryem1425@users.noreply.github.com>

---------

Co-authored-by: jsl-models <74001263+jsl-models@users.noreply.github.com>
Co-authored-by: gadde5300 <gadde5300@gmail.com>
Co-authored-by: GADDE SAI SHAILESH <69344247+gadde5300@users.noreply.github.com>
Co-authored-by: bunyamin-polat <muhendisbp@gmail.com>
Co-authored-by: Bünyamin Polat <78386903+bunyamin-polat@users.noreply.github.com>
Co-authored-by: Jose J. Martinez <jose.martinez@wayops.eu>
Co-authored-by: Damla Gurbaz <81505007+Damla-Gurbaz@users.noreply.github.com>
Co-authored-by: Aymane Chilah <a.chilah@hotmail.com>
Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>
Co-authored-by: Danilo Burbano <37355249+danilojsl@users.noreply.github.com>
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Lev <agsfer@gmail.com>
Co-authored-by: Cabir C <64752006+Cabir40@users.noreply.github.com>
Co-authored-by: jsl-builder <48132196+jsl-builder@users.noreply.github.com>
Co-authored-by: jsl-builder <jsl-builder@johnsnowlabs.com>
Co-authored-by: Vildan <64216738+Meryem1425@users.noreply.github.com>

---------

Co-authored-by: Jose J. Martinez <jose.martinez@wayops.eu>
Co-authored-by: Damla Gurbaz <81505007+Damla-Gurbaz@users.noreply.github.com>
Co-authored-by: Aymane Chilah <a.chilah@hotmail.com>
Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>
Co-authored-by: Danilo Burbano <37355249+danilojsl@users.noreply.github.com>
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Lev <agsfer@gmail.com>
Co-authored-by: Cabir C <64752006+Cabir40@users.noreply.github.com>
Co-authored-by: jsl-builder <48132196+jsl-builder@users.noreply.github.com>
Co-authored-by: jsl-builder <jsl-builder@johnsnowlabs.com>
Co-authored-by: Vildan <64216738+Meryem1425@users.noreply.github.com>
Co-authored-by: jsl-models <74001263+jsl-models@users.noreply.github.com>
Co-authored-by: gadde5300 <gadde5300@gmail.com>
Co-authored-by: GADDE SAI SHAILESH <69344247+gadde5300@users.noreply.github.com>
Co-authored-by: bunyamin-polat <muhendisbp@gmail.com>
Co-authored-by: Bünyamin Polat <78386903+bunyamin-polat@users.noreply.github.com>

---------

Co-authored-by: jsl-models <74001263+jsl-models@users.noreply.github.com>
Co-authored-by: Mary-Sci <meryemyildiz366@gmail.com>
Co-authored-by: Merve Ertas Uslu <67653613+Mary-Sci@users.noreply.github.com>
Co-authored-by: gadde5300 <gadde5300@gmail.com>
Co-authored-by: Jose J. Martinez <jose.martinez@wayops.eu>
Co-authored-by: Damla Gurbaz <81505007+Damla-Gurbaz@users.noreply.github.com>
Co-authored-by: Aymane Chilah <a.chilah@hotmail.com>
Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>
Co-authored-by: Danilo Burbano <37355249+danilojsl@users.noreply.github.com>
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Lev <agsfer@gmail.com>
Co-authored-by: Cabir C <64752006+Cabir40@users.noreply.github.com>
Co-authored-by: jsl-builder <48132196+jsl-builder@users.noreply.github.com>
Co-authored-by: jsl-builder <jsl-builder@johnsnowlabs.com>
Co-authored-by: Vildan <64216738+Meryem1425@users.noreply.github.com>
Co-authored-by: GADDE SAI SHAILESH <69344247+gadde5300@users.noreply.github.com>
Co-authored-by: bunyamin-polat <muhendisbp@gmail.com>
Co-authored-by: Bünyamin Polat <78386903+bunyamin-polat@users.noreply.github.com>
  • Loading branch information
19 people authored Feb 4, 2023
1 parent 1cb8f50 commit d2a83aa
Show file tree
Hide file tree
Showing 68 changed files with 7,927 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
layout: model
title: Legal Agreement Of Purchase And Sale Document Classifier (Bert Sentence Embeddings)
author: John Snow Labs
name: legclf_agreement_of_purchase_and_sale_bert
date: 2023-01-26
tags: [en, legal, classification, agreement, purchase, sale, licensed, bert, tensorflow]
task: Text Classification
language: en
edition: Legal NLP 1.0.0
spark_version: 3.0
supported: true
engine: tensorflow
annotator: LegalClassifierDLModel
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

The `legclf_agreement_of_purchase_and_sale_bert` model is a Bert Sentence Embeddings Document Classifier used to classify if the document belongs to the class `agreement-of-purchase-and-sale` (check [Lawinsider](https://www.lawinsider.com/tags) for similar document type classification) or not (Binary Classification).

Unlike the Longformer model, this model is lighter in terms of inference time.

## Predicted Entities

`agreement-of-purchase-and-sale`, `other`

{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/legal/models/legclf_agreement_of_purchase_and_sale_bert_en_1.0.0_3.0_1674731506904.zip){:.button.button-orange}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/legal/models/legclf_agreement_of_purchase_and_sale_bert_en_1.0.0_3.0_1674731506904.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3}

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python

document_assembler = nlp.DocumentAssembler()\
.setInputCol("text")\
.setOutputCol("document")

embeddings = nlp.BertSentenceEmbeddings.pretrained("sent_bert_base_cased", "en")\
.setInputCols("document")\
.setOutputCol("sentence_embeddings")

doc_classifier = legal.ClassifierDLModel.pretrained("legclf_agreement_of_purchase_and_sale_bert", "en", "legal/models")\
.setInputCols(["sentence_embeddings"])\
.setOutputCol("category")

nlpPipeline = nlp.Pipeline(stages=[
document_assembler,
embeddings,
doc_classifier])

df = spark.createDataFrame([["YOUR TEXT HERE"]]).toDF("text")

model = nlpPipeline.fit(df)

result = model.transform(df)

```

</div>

## Results

```bash

+-------+
|result|
+-------+
|[agreement-of-purchase-and-sale]|
|[other]|
|[other]|
|[agreement-of-purchase-and-sale]|

```

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|legclf_agreement_of_purchase_and_sale_bert|
|Compatibility:|Legal NLP 1.0.0+|
|License:|Licensed|
|Edition:|Official|
|Input Labels:|[sentence_embeddings]|
|Output Labels:|[class]|
|Language:|en|
|Size:|22.5 MB|

## References

Legal documents, scrapped from the Internet, and classified in-house + SEC documents + Lawinsider categorization

## Benchmarking

```bash


label precision recall f1-score support
agreement-of-purchase-and-sale 0.96 0.98 0.97 51
other 0.99 0.98 0.99 116
accuracy - - 0.98 167
macro-avg 0.98 0.98 0.98 167
weighted-avg 0.98 0.98 0.98 167

```
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
layout: model
title: Legal Confidential Treatment Document Classifier (Bert Sentence Embeddings)
author: John Snow Labs
name: legclf_confidential_treatment_bert
date: 2023-01-26
tags: [en, legal, classification, confidential, treatment, licensed, bert, tensorflow]
task: Text Classification
language: en
edition: Legal NLP 1.0.0
spark_version: 3.0
supported: true
engine: tensorflow
annotator: LegalClassifierDLModel
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

The `legclf_confidential_treatment_bert` model is a Bert Sentence Embeddings Document Classifier used to classify if the document belongs to the class `confidential-treatment` (check [Lawinsider](https://www.lawinsider.com/tags) for similar document type classification) or not (Binary Classification).

Unlike the Longformer model, this model is lighter in terms of inference time.

## Predicted Entities

`confidential-treatment`, `other`

{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/legal/models/legclf_confidential_treatment_bert_en_1.0.0_3.0_1674732030348.zip){:.button.button-orange}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/legal/models/legclf_confidential_treatment_bert_en_1.0.0_3.0_1674732030348.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3}

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python

document_assembler = nlp.DocumentAssembler()\
.setInputCol("text")\
.setOutputCol("document")

embeddings = nlp.BertSentenceEmbeddings.pretrained("sent_bert_base_cased", "en")\
.setInputCols("document")\
.setOutputCol("sentence_embeddings")

doc_classifier = legal.ClassifierDLModel.pretrained("legclf_confidential_treatment_bert", "en", "legal/models")\
.setInputCols(["sentence_embeddings"])\
.setOutputCol("category")

nlpPipeline = nlp.Pipeline(stages=[
document_assembler,
embeddings,
doc_classifier])

df = spark.createDataFrame([["YOUR TEXT HERE"]]).toDF("text")

model = nlpPipeline.fit(df)

result = model.transform(df)

```

</div>

## Results

```bash

+-------+
|result|
+-------+
|[confidential-treatment]|
|[other]|
|[other]|
|[confidential-treatment]|

```

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|legclf_confidential_treatment_bert|
|Compatibility:|Legal NLP 1.0.0+|
|License:|Licensed|
|Edition:|Official|
|Input Labels:|[sentence_embeddings]|
|Output Labels:|[class]|
|Language:|en|
|Size:|22.7 MB|

## References

Legal documents, scrapped from the Internet, and classified in-house + SEC documents + Lawinsider categorization

## Benchmarking

```bash


label precision recall f1-score support
confidential-treatment 0.98 0.98 0.98 55
other 0.99 0.99 0.99 116
accuracy - - 0.99 171
macro-avg 0.99 0.99 0.99 171
weighted-avg 0.99 0.99 0.99 171

```
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
layout: model
title: Legal Form Of Indemnification Agreement Document Classifier (Bert Sentence Embeddings)
author: John Snow Labs
name: legclf_form_of_indemnification_agreement_bert
date: 2023-01-26
tags: [en, legal, classification, indemnification, agreement, licensed, bert, tensorflow]
task: Text Classification
language: en
edition: Legal NLP 1.0.0
spark_version: 3.0
supported: true
engine: tensorflow
annotator: LegalClassifierDLModel
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

The `legclf_form_of_indemnification_agreement_bert` model is a Bert Sentence Embeddings Document Classifier used to classify if the document belongs to the class `form-of-indemnification-agreement` (check [Lawinsider](https://www.lawinsider.com/tags) for similar document type classification) or not (Binary Classification).

Unlike the Longformer model, this model is lighter in terms of inference time.

## Predicted Entities

`form-of-indemnification-agreement`, `other`

{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/legal/models/legclf_form_of_indemnification_agreement_bert_en_1.0.0_3.0_1674732486525.zip){:.button.button-orange}
[Copy S3 URI](s3://auxdata.johnsnowlabs.com/legal/models/legclf_form_of_indemnification_agreement_bert_en_1.0.0_3.0_1674732486525.zip){:.button.button-orange.button-orange-trans.button-icon.button-copy-s3}

## How to use



<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}

```python

document_assembler = nlp.DocumentAssembler()\
.setInputCol("text")\
.setOutputCol("document")

embeddings = nlp.BertSentenceEmbeddings.pretrained("sent_bert_base_cased", "en")\
.setInputCols("document")\
.setOutputCol("sentence_embeddings")

doc_classifier = legal.ClassifierDLModel.pretrained("legclf_form_of_indemnification_agreement_bert", "en", "legal/models")\
.setInputCols(["sentence_embeddings"])\
.setOutputCol("category")

nlpPipeline = nlp.Pipeline(stages=[
document_assembler,
embeddings,
doc_classifier])

df = spark.createDataFrame([["YOUR TEXT HERE"]]).toDF("text")

model = nlpPipeline.fit(df)

result = model.transform(df)

```

</div>

## Results

```bash

+-------+
|result|
+-------+
|[form-of-indemnification-agreement]|
|[other]|
|[other]|
|[form-of-indemnification-agreement]|

```

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|legclf_form_of_indemnification_agreement_bert|
|Compatibility:|Legal NLP 1.0.0+|
|License:|Licensed|
|Edition:|Official|
|Input Labels:|[sentence_embeddings]|
|Output Labels:|[class]|
|Language:|en|
|Size:|22.4 MB|

## References

Legal documents, scrapped from the Internet, and classified in-house + SEC documents + Lawinsider categorization

## Benchmarking

```bash


label precision recall f1-score support
form-of-indemnification-agreement 1.00 0.97 0.99 36
other 0.98 1.00 0.99 65
accuracy - - 0.99 101
macro-avg 0.99 0.99 0.99 101
weighted-avg 0.99 0.99 0.99 101

```
Loading

0 comments on commit d2a83aa

Please sign in to comment.