jev2-legal / README.md
bwang0911's picture
Add new SentenceTransformer model.
54660cd verified
|
raw
history blame
40.7 kB
metadata
tags:
  - sentence-transformers
  - sentence-similarity
  - feature-extraction
  - generated_from_trainer
  - dataset_size:3742
  - loss:MultipleNegativesRankingLoss
base_model: jinaai/jina-embeddings-v2-small-en
widget:
  - source_sentence: >-
      Q: I left the scene of an unsafe multi car accident and filed a police
      report online a few hours later. I drove into a multi car accident and
      another car hit me from behind. I didn’t hit anyone. It was on a very busy
      interstate, and I felt it was unsafe and no police were on scene yet. I
      drove to the next exit and assessed the damage, which wasn’t terrible, and
      called my insurance company. I then drove home and filed a collision
      report online. Cqn I get in trouble for this? 
    sentences:
      - >-
        A:Leaving the scene of an accident, even if you did not cause it, can
        potentially lead to criminal charges and penalties under Kentucky law: -
        Kentucky law requires drivers involved in an accident to remain at the
        scene and provide their contact/insurance information to the other
        parties involved. - Filing a report later does not satisfy this
        requirement to remain at the scene. Leaving can be considered a hit and
        run. - The penalties for leaving the scene of an accident where injuries
        or property damage occur are fines up to $500 and up to 90 days in jail.
        - The fact that the accident occurred on a busy highway makes leaving
        more hazardous if others were not able to avoid the wreckage. - Your
        concern about safety does not provide legal justification for leaving.
        You are required to move to a safe position at the scene and comply with
        the law. - The best approach is to remain at the nearest safe location
        until police arrive and document the incident. While the consequences
        may be minor for a first offense with no injuries, it is still advisable
        to consult with a local criminal defense attorney to mitigate penalties
        for improperly leaving the scene. Cooperating fully with any law
        enforcement investigation will also be important.
      - >-
        A:Social Security itself does not typically take assets for repayment,
        but Medicaid can seek recovery from the estate of a deceased beneficiary
        under certain circumstances. Whether your mobile home would be subject
        to such recovery can depend on the state's Medicaid rules and the
        specifics of the trust. Supplemental Needs Trusts are generally designed
        to benefit the individual while preserving eligibility for public
        benefits, and the assets within the trust are usually not subject to
        Medicaid estate recovery. However, since you own the mobile home and it
        is not in the trust, it may be considered part of your estate. It's
        important to have a properly executed will or to consider transferring
        the home into the trust, if permitted, to protect it from estate
        recovery. You may want to seek legal guidance to explore options like a
        Lady Bird deed or other mechanisms that can help ensure the home passes
        to your daughters without being subject to estate recovery. Considering
        your financial situation, you might be eligible for legal aid or pro
        bono services in your area. They can help you prepare a formal will and
        advise on protecting your home from potential estate recovery.
      - >-
        A:Thank you for having concerns about the welfare of animals in
        transport. A Colorado attorney familiar with agricultural and animal
        rights issues might be able to advise best on this, but you await a
        response for three weeks. This is not an area that many attorneys deal
        with. Departments of Agriculture, on a federal or state level might be
        able to offer direction toward relevant resources. There might be
        scientific research out there on this issue. There are also animal
        welfare groups that deal with the rights of farm animals. Here are two,
        FARM SANCTUARY and THE HUMANE SOCIETY OF THE UNITED STATES. It's
        possible they might be able to offer meaningful input here. Here are
        their links: Farm Sanctuary -
        https://www.farmsanctuary.org/about-us/leadership/ The Humane Society of
        the United States - https://www.humanesociety.org/farm-animal-welfare
        Thank you for your compassion and concern for the welfare of animals.
        Good luck Tim Akpinar
  - source_sentence: >-
      Q: I need help with mold in my apartment. My landlord isn't doing anything
      & my 1 year old now has a virus due to the mold. The management has been
      here a week last week it was someone else but I say this because they're
      saying none of my money orders can be found and I have not paid rent which
      taxes went really funded me and I have proof which is an approval letter.
      I think now they're just trying to listen for any little thing because
      this mode is becoming a problem and my daughter is getting worse. 
    sentences:
      - >-
        A:Without words of survivorship the grantees and their heirs will take
        as tenants in common of undivided interests. Someone has to pay the
        taxes and mortgage or the property is lost. You may wish to hire an
        attorney to determine heirship and get a Deed from all other TICs over
        to you so that you own it in fee simple. You will probably have to pay
        for their transfers.
      - >-
        A:There are a number of licensed mold remediation companies that can
        remediate mold in a dwelling. The procedure to notify a landlord to make
        necessary repairs is described in detail in Section 92.051-92.062 of the
        Texas Property Code. It's a few pages of reading, but too long to post
        here. If, after you give the proper written notice, the landlord fails
        to correct the mold problem within the proper time, you may be able to
        invoke your right to hire and pay a mold remediation company to correct
        the problem, and then deduct that cost from your rent. In the meantime,
        you should temporarily find another place to stay with your daughter.
        While mold does not "cause" viruses, it can cause fungal infections and
        allergic reactions that exacerbate the symptoms of common viral
        infections like the flu. Proving a causal link will require medical
        testing and expert medical opinion from a specialist in that particular
        field of medicine. That is likely to be expensive and is often
        inconclusive. One of the more common recommended treatments is to remove
        yourself from the environment where the mold is. Symptoms from exposure
        to mold often--but not always--go away within a few days.
      - >-
        A:In California, the specific time frame for noticing members of a
        meeting for a corporation, including a union's Board of Directors, is
        typically found in the corporation's bylaws rather than directly in the
        Corporations Code or Civil Code. These bylaws should outline the notice
        requirements for meetings, including the minimum time in which members
        must be notified prior to a meeting. If you believe that a Board of
        Directors representing a Union is violating these notice requirements,
        the first step is usually to address the issue internally within the
        organization. This could involve bringing the matter to the attention of
        the Board, a compliance officer, or through internal dispute resolution
        mechanisms as outlined in the Union's bylaws or governing documents. If
        internal remedies are ineffective or unavailable, and you believe there
        is a violation of legal obligations under the Corporations Code or other
        relevant laws, you can report the violation to the appropriate
        regulatory body. In the case of unions, this might involve state labor
        boards or other agencies overseeing labor and employment practices. It's
        also advisable to seek legal advice to understand the best course of
        action and ensure that your rights, and those of other members, are
        appropriately protected.
  - source_sentence: >-
      Q: My parents will has nothing in it about my mothers jewelry. However my
      father split his guns with my 2 brothers yrs ago.. I'm the only girl and
      the baby. It was always known that I was to inherit mother's jewelry
      collection. My oldest brother is the exacutor of my trust and was the
      beneficiary of my parents estate for past 7 years. Mother died n November
      and dad in 2018. We are at the end of the succession and I was told there
      is no jewelry left. I know for a fact mom told me her diamonds were in a
      brothers safety deposit box . Please tell me can I do anything to get my
      mom's things? I'm heartbroken. My brothers are older than I am...10 yrs+
      and we have never got along. I really don't know them. I've been treated
      very unfair and disliked by both and now this. 
    sentences:
      - >-
        A:You need to contact an attorney who handles successions and estate
        matters as soon as possible to file the proper pleadings to review the
        pleadings filed, protect your interest and to object to the inventory
        your brother has likely filed, if it does not have your mother's jewelry
        listed.
      - >-
        A:If you have an attorney, your attorney can assist you in this. If you
        don't have one, you need one. Death Certificates are somewhat difficult
        to obtain unless you fall within the list of individuals to whom it can
        be released. The State Department of Health - Office of Vital Statistics
        is the state agency in Oklahoma that maintains Oklahoma Death
        Certificates.
      - >-
        A:You must find out whether your city has a process for petitioning to
        place a referendum on the ballot (also called initiative petition), and
        if so, what the petition requirements are (method, number of signatures
        needed, time restrictions, etc.). I would start out by calling the City
        Clerk's Office or City Attorney's Office for guidance. Otherwise, hire
        an attorney handling local government issues to research it and advise
        you on the matter. My office can offer advice on this issue, after
        reviewing the ordinances and contacting city officials.
  - source_sentence: >-
      Q: I have an issue where a dentist has pulled the wrong tooth leaving me
      unable to chew on one side of my mouth for 4 weeks. The dentist lied and
      said the tooth cracked while putting the right tooth not knowing that his
      assistant had already given me the tooth in question. It’s not broken or
      cracked in any way. I also had temporary dentures made that would allow me
      to chew on that side until the wounds heal, but they are now of no use. I
      have to wait 4 weeks to let the wounds heal before I can be fitted for new
      dentures leaving me unable to use the left side of my mouth, I’m taking
      3-4 pain pills a day and have only be able to eat soup since the 16th of
      November. No Thanksgiving dinner. Is there any way to get compensation for
      negligence, pain and suffering in my case? 
    sentences:
      - >-
        A:In California, if a dentist performs a procedure incorrectly, such as
        extracting the wrong tooth, it may be grounds for a dental malpractice
        claim. Dental malpractice is a form of professional negligence, and to
        establish a case, you typically need to prove that the dentist failed to
        provide the standard of care expected in the profession and that this
        failure directly caused your injury or harm. In your situation, the
        removal of the wrong tooth and the subsequent issues you're facing, such
        as pain and the inability to eat properly, could potentially be
        considered as damages in a malpractice claim. Compensation in such cases
        can include costs for medical treatment, pain and suffering, and any
        other related expenses. It's important to gather all relevant
        documentation, including dental records, evidence of the extracted
        tooth, and any correspondence with the dentist. Given the complexities
        involved in proving dental malpractice and the need to understand the
        specific medical and legal aspects of your case, consulting with an
        attorney experienced in medical malpractice would be advisable. An
        attorney can assess the details of your case, advise on the strength of
        your claim, and guide you through the process of seeking compensation.
        They can also help negotiate a settlement or represent you in court if
        necessary.
      - >-
        A:Sorry to hear about your ordeal. You are basically asking if the
        traffic magistrate can convict someone who shouldn't be found guilty.
        That's the same as asking if the magistrate has the power to make an
        incorrect decision. The answer, unfortunately, is yes, and the
        magistrate is immune from a money damages claim for making an incorrect
        decision. Incorrect judicial decisions are common - that's why appellate
        courts exist, and that's why appellate courts are very busy. I suggest
        you promptly consult a traffic ticket attorney in your area.
      - >-
        A:It appears that the utility company is applying your payments to the
        oldest debt, not the current debt, this means as long as you keep a past
        due balance you are going to be assessed late fees for underpayment of
        the bill. To avoid this you would have to pay off the current balance
        100$. I would question the March 1 $30 charge because your past due is
        only $220, so they overcharged you on the penalty. One of the problems
        with fighting with your utility company is that they always have the
        last word and if you don't pay what they demand, they cut off your
        service and then won't allow you to have an account with them. It isn't
        fair or right but that's the way it is. There are also programs for
        people to spread out utility bill payments when the utility has high and
        low seasons (i.e. gas bill in the mountains where colder in winter, more
        gas for heating) You should look into your utility to see if they have
        such a program.
  - source_sentence: >-
      Q: I'm trying to figure out if my "financial planner". was actually
      qualified to give me advice on investing - do they have any kind of
      certification they have to have? 
    sentences:
      - >-
        A:Landlords must repair health and safety issues and provide essential
        services under the Landlord Tenant Law. Generally, the statutes specify
        what you may sue for and what damages you can recover. The analysis is
        very situation specific. However, another option you may have is deliver
        a letter to the landlord stating that you intend to cancel your lease if
        the essential service or health and safety issue is not corrected within
        14 days. However, to make sure that you follow the legal procedure to
        terminate your lease you should talk to a local lawyer about your
        situation. Additionally, you should speak with a local lawyer about your
        situation to find out what claims or options you may have.
      - >-
        A:In California, the specifics of your employment contract and job
        description are crucial in determining the legality of your employer's
        actions. If your agreement specifies your role and compensation with one
        entity, you may have grounds to request additional pay for work
        performed for the other companies. Employers must comply with
        California's labor laws regarding wages, overtime, and working
        conditions. As a salaried employee, it is essential to review whether
        your salary covers the additional work, keeping in mind that non-exempt
        salaried employees are still eligible for overtime. You have the right
        to discuss your work conditions and seek an agreement that compensates
        for any extra duties. Declining additional tasks not outlined in your
        original job scope may be within your rights, but it could potentially
        affect your employment status. Consult with an attorney who can provide
        guidance based on your specific situation and employment agreement. They
        can offer tailored advice on how to approach your employer and negotiate
        terms or whether legal action may be appropriate.
      - >-
        A:If your "financial planner" is a stockbroker who sells and markets
        stocks, bonds or other securities products, the easiest way to assess
        their certifications is checking the FINRA platform Brokercheck. Simply
        type in the brokers name and you will see what certifications the broker
        or "financial planner" has under the "Examinations" section of the
        platform. This will tell you if the financial planner has a Series 7
        license which permits someone to sell or market securities products.
        Brokercheck will also contain other critical information relevant to the
        brokers qualifications such as the number of years affiliated with a
        broker dealer and what member firm the broker is affiliated with. The
        "Disclosures" section will show whether the broker has been involved in
        any past customer disputes or regulatory matters with FINRA the self
        regulatory organization which manages Brokercheck and overseas broker
        dealers. Your "financial planner" may not appear on Brokercheck if the
        individual was an accountant or works as a CFA or CFP. More information
        is needed on the financial planner in order to really assess what
        certifications they are required to have.
datasets:
  - dzunggg/legal-qa-v1
pipeline_tag: sentence-similarity
library_name: sentence-transformers

SentenceTransformer based on jinaai/jina-embeddings-v2-small-en

This is a sentence-transformers model finetuned from jinaai/jina-embeddings-v2-small-en on the legal-qa-v1 dataset. It maps sentences & paragraphs to a 512-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: JinaBertModel 
  (1): Pooling({'word_embedding_dimension': 512, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("bwang0911/jev2-legal")
# Run inference
sentences = [
    'Q: I\'m trying to figure out if my "financial planner". was actually qualified to give me advice on investing - do they have any kind of certification they have to have? ',
    'A:If your "financial planner" is a stockbroker who sells and markets stocks, bonds or other securities products, the easiest way to assess their certifications is checking the FINRA platform Brokercheck. Simply type in the brokers name and you will see what certifications the broker or "financial planner" has under the "Examinations" section of the platform. This will tell you if the financial planner has a Series 7 license which permits someone to sell or market securities products. Brokercheck will also contain other critical information relevant to the brokers qualifications such as the number of years affiliated with a broker dealer and what member firm the broker is affiliated with. The "Disclosures" section will show whether the broker has been involved in any past customer disputes or regulatory matters with FINRA the self regulatory organization which manages Brokercheck and overseas broker dealers. Your "financial planner" may not appear on Brokercheck if the individual was an accountant or works as a CFA or CFP. More information is needed on the financial planner in order to really assess what certifications they are required to have.',
    "A:In California, the specifics of your employment contract and job description are crucial in determining the legality of your employer's actions. If your agreement specifies your role and compensation with one entity, you may have grounds to request additional pay for work performed for the other companies. Employers must comply with California's labor laws regarding wages, overtime, and working conditions. As a salaried employee, it is essential to review whether your salary covers the additional work, keeping in mind that non-exempt salaried employees are still eligible for overtime. You have the right to discuss your work conditions and seek an agreement that compensates for any extra duties. Declining additional tasks not outlined in your original job scope may be within your rights, but it could potentially affect your employment status. Consult with an attorney who can provide guidance based on your specific situation and employment agreement. They can offer tailored advice on how to approach your employer and negotiate terms or whether legal action may be appropriate.",
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 512]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

Training Details

Training Dataset

legal-qa-v1

  • Dataset: legal-qa-v1 at 6280beb
  • Size: 3,742 training samples
  • Columns: question and answer
  • Approximate statistics based on the first 1000 samples:
    question answer
    type string string
    details
    • min: 13 tokens
    • mean: 116.38 tokens
    • max: 292 tokens
    • min: 6 tokens
    • mean: 155.84 tokens
    • max: 512 tokens
  • Samples:
    question answer
    Q: I was wondering if a pain management office is acting illegally/did an illegal action.. I was discharged as a patient from a pain management office after them telling me that a previous pain management specialist I saw administered a steroid shot wrong and I told them in the portal that I spoke to lawyers for advice but no lawsuit/case was created. It was maybe 1-2 months after I was discharged that I no longer have access to my patient portal with them. Every time I try to login I enter my credentials, wait a few seconds, and then I get re-directed back to the original screen where I have various options to login. I know I can speak to the office directly and ask them about what specifically is going on, talk to other lawyers if this is a violation of my rights, etc. but I was just wondering if anyone on this site would know if this action is in fact illegal. A:In Kentucky, your situation raises questions about patient rights and medical records access. If you were discharged from a pain management office and subsequently lost access to your patient portal, it's important to understand your rights regarding medical records. Under the Health Insurance Portability and Accountability Act (HIPAA), you have the right to access your own medical records. A healthcare provider cannot deny you access to your records, even if you were discharged from their practice. The issue with the patient portal could be a technical glitch or a deliberate action, but either way, it needs to be addressed. You should contact the pain management office directly to inquire about the issue with the patient portal. They are obligated to provide you with a way to access your medical records, which may include providing paper copies or access through a different electronic means. If the office is unresponsive or refuses to provide access to your records, consider speaking to a lawyer who is knowledgeable in health care law. They can guide you on how to enforce your rights to access your medical records and address any potential legal violations by the healthcare provider. Remember, your right to access your medical records is protected by law, and any obstacles to this access should be promptly addressed.
    Q: My houseboat was moved while I was at work and was asked to leave the property after 16 months without any notices.. Management told me that he didn’t like those kind of people that came to visit me. I went on vacation and when I came back my electrical cord was missing and my water hose was cut in pieces. He than got of hold of me and said I have your boat and that he was putting a lien on it for back rent. I never received any notices from management. He than told me that he wanted me to leave the property and that he would hold my boat until i found another parking spot for it. I finally found a parking spot a year later and I find out that he liened my houseboat and was selling it and told me to sue him and gave me his lawyers contact. What options do I have. I now am homeless and I lost my job and seeing myself falling as time goes. Any help would be appreciated. A:If your houseboat was moved without your permission and you were asked to leave the property after 16 months without any notices, and the management has placed a lien on your houseboat and is attempting to sell it, you may have legal options to challenge their actions. First, you may want to consult with an attorney who specializes in property law or landlord-tenant law to review your case and provide guidance on your legal rights and options. It may also be helpful to gather any evidence you have, such as receipts or documentation of payments or communications with the management, to support your case. Some potential legal claims you may have against the management include breach of contract, conversion, or wrongful eviction. These claims may allow you to seek damages or other forms of relief, such as the return of your houseboat or compensation for any losses you have suffered. It's important to act quickly, as there may be deadlines or other requirements for filing a legal claim. An attorney can provide guidance on the best course of action and help you navigate the legal process.
    Q: Wondering if I could sue a dealership if I’ve had to replace my transmission 2 times within a year. I’ve had to replace my transmission now 2 different times in 10 months of owning my 2018 Ford Expedition. My first replacement was $5,200 and then 1 1/2 months later the transmission went out and now they are working on it again A:Yes, you can sue a dealership if you have had to replace your transmission 2 times within a year. Whether you will be successful depends on the facts and your presentation. You don't mention anything about any written agreements. Allowing an attorney to evaluate, organize and draft your conciliation or (small claims) complaint (up to $15,000) would be a wise investment. A well polished complaint will not only provide the judge a solid foundation to rule in your favor, but a detailed outline on which to base your oral argument. It would provide you a distinct advantage over the opposing party. The fees can be reasonable depending on the attorney.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim"
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 32
  • learning_rate: 2e-05
  • warmup_ratio: 0.1
  • fp16: True
  • batch_sampler: no_duplicates

All Hyperparameters

Click to expand
  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: no
  • prediction_loss_only: True
  • per_device_train_batch_size: 32
  • per_device_eval_batch_size: 8
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 2e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 3
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.1
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • use_ipex: False
  • bf16: False
  • fp16: True
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: False
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • dispatch_batches: None
  • split_batches: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: False
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • eval_use_gather_object: False
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional

Framework Versions

  • Python: 3.10.12
  • Sentence Transformers: 3.1.1
  • Transformers: 4.45.2
  • PyTorch: 2.5.1+cu124
  • Accelerate: 1.1.0
  • Datasets: 3.1.0
  • Tokenizers: 0.20.3

Citation

BibTeX

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}

MultipleNegativesRankingLoss

@misc{henderson2017efficient,
    title={Efficient Natural Language Response Suggestion for Smart Reply},
    author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
    year={2017},
    eprint={1705.00652},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}