pip install -U sentence-transformers1from sentence_transformers import CrossEncoder
2
3# Download from the 🤗 Hub
4model = CrossEncoder("pujithapsx/test")
5# Get scores for pairs of texts
6pairs = [
7 ['Name: Sneha Reddy , First: Sneha , Middle: , Last: Reddy , Gender: F , DOB: 1991-07-11 , Spouse: , Mother: , Father: , Company: FINANCE CORP INDIA , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: HOUSE 687, BLOCK A kolkata , City: KOLKATA , State: WEST BENGAL , ZIP: 700001 , Address1: HOUSE 687, BLOCK A kolkata , City1: KOLKATA , State1: WEST BENGAL , ZIP1: 700001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9454123990 , Phone1: , Phone2: , Phone3: , Phone4: , Email: snehareddy@gmail.com , Email1: , Email2: , Email3: , Email4: ', 'Name: Swati Gupta , First: Swati , Middle: , Last: Gupta , Gender: F , DOB: 2000-09-02 , Spouse: , Mother: , Father: , Company: RETAIL GIANT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: PLOT 91, NEAR TEMPLE lucknow , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: PLOT 91, NEAR TEMPLE lucknow , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9447112584 , Phone1: , Phone2: , Phone3: , Phone4: , Email: swatigupta@yahoo.com , Email1: , Email2: , Email3: , Email4: '],
8 ['Name: Pradeep Kumar , First: Pradeep , Middle: , Last: Kumar , Gender: M , DOB: 1984-05-19 , Spouse: , Mother: , Father: , Company: MICROSOFT INDIA , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 169 KONDHWA NEAR SCHOOL , City: BANGALORE , State: KARNATAKA , ZIP: 560066 , Address1: 169 KONDHWA NEAR SCHOOL , City1: BANGALORE , State1: KARNATAKA , ZIP1: 560066 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 8574585188 , Phone1: , Phone2: , Phone3: , Phone4: , Email: pradeepkumar@workmail.com , Email1: , Email2: , Email3: , Email4: ', 'Name: Kavya Sharma , First: Kavya , Middle: , Last: Sharma , Gender: F , DOB: 2002-02-20 , Spouse: , Mother: , Father: , Company: PAYTM , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 477 LAJPAT NAGAR NEAR TEMPLE , City: MUMBAI , State: MAHARASHTRA , ZIP: 400017 , Address1: 477 LAJPAT NAGAR NEAR TEMPLE , City1: MUMBAI , State1: MAHARASHTRA , ZIP1: 400017 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 7168571579 , Phone1: , Phone2: , Phone3: , Phone4: , Email: kavyasharma@workmail.com , Email1: , Email2: , Email3: , Email4: '],
9 ['Name: Priya Prasad Reddy , First: Priya , Middle: Prasad , Last: Reddy , Gender: F , DOB: 1983-07-03 , Spouse: , Mother: , Father: , Company: GLOBAL INFOTECH , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 401, LAKE APT, 24 MAIN RD , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: FLAT 401, LAKE APT, 24 MAIN RD , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9149203558 , Phone1: , Phone2: , Phone3: , Phone4: , Email: priyareddy@gmail.com , Email1: priya.reddy@globalinfotech.com , Email2: , Email3: , Email4: ', 'Name: Priya Reddy , First: Priya , Middle: , Last: Reddy , Gender: F , DOB: 1983-07-03 , Spouse: , Mother: , Father: , Company: GLOBAL INFOTECH PVT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 401, LAKE APARTMENT, 24 MAIN ROAD , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: FLAT 401, LAKE APARTMENT, 24 MAIN ROAD , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9208449460 , Phone1: , Phone2: , Phone3: , Phone4: , Email: priyareddy@gmail.com , Email1: priya.reddy@globalinfotech.com , Email2: , Email3: , Email4: '],
10 ['Name: Divya Patel , First: Divya , Middle: , Last: Patel , Gender: F , DOB: 1985-02-01 , Spouse: , Mother: , Father: , Company: INFOSYS TECHNOLOGIES , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 316 SECTOR 12 NEAR PARK , City: HYDERABAD , State: TELANGANA , ZIP: 500048 , Address1: 316 SECTOR 12 NEAR PARK , City1: HYDERABAD , State1: TELANGANA , ZIP1: 500048 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 8883181644 , Phone1: , Phone2: , Phone3: , Phone4: , Email: divyapatel@outlook.com , Email1: , Email2: , Email3: , Email4: ', 'Name: Nitin Rao , First: Nitin , Middle: , Last: Rao , Gender: M , DOB: 1987-12-02 , Spouse: , Mother: , Father: , Company: RELIANCE JIO , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 612 BANJARA HILLS NEAR PARK , City: COIMBATORE , State: TAMIL NADU , ZIP: 641039 , Address1: 612 BANJARA HILLS NEAR PARK , City1: COIMBATORE , State1: TAMIL NADU , ZIP1: 641039 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9358550137 , Phone1: , Phone2: , Phone3: , Phone4: , Email: nitinrao@gmail.com , Email1: , Email2: , Email3: , Email4: '],
11 ['Name: Rahul Iyer , First: Rahul , Middle: , Last: Iyer , Gender: M , DOB: 1980-02-25 , Spouse: , Mother: , Father: , Company: MANUFACTURING CO , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 271, PARK APT, 32 MAIN RD , City: BANGALORE , State: KARNATAKA , ZIP: 560001 , Address1: FLAT 271, PARK APT, 32 MAIN RD , City1: BANGALORE , State1: KARNATAKA , ZIP1: 560001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9162959284 , Phone1: , Phone2: , Phone3: , Phone4: , Email: rahuliyer@gmail.com , Email1: rahul.iyer@manufacturingco.com , Email2: , Email3: , Email4: ', 'Name: Rahul Iyer , First: Rahul , Middle: , Last: Iyer , Gender: M , DOB: 1980-02-25 , Spouse: , Mother: , Father: , Company: MANUFACTURING CO PVT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 271, PARK APT, 32 MAIN RD , City: BANGALORE , State: KARNATAKA , ZIP: 560001 , Address1: FLAT 271, PARK APT, 32 MAIN RD , City1: BANGALORE , State1: KARNATAKA , ZIP1: 560001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9162959284 , Phone1: , Phone2: , Phone3: , Phone4: , Email: rahuliyer@gmail.com , Email1: rahul.iyer@manufacturingco.com , Email2: , Email3: , Email4: '],
12]
13scores = model.predict(pairs)
14print(scores.shape)
15# (5,)
16
17# Or rank different texts based on similarity to a single text
18ranks = model.rank(
19 'Name: Sneha Reddy , First: Sneha , Middle: , Last: Reddy , Gender: F , DOB: 1991-07-11 , Spouse: , Mother: , Father: , Company: FINANCE CORP INDIA , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: HOUSE 687, BLOCK A kolkata , City: KOLKATA , State: WEST BENGAL , ZIP: 700001 , Address1: HOUSE 687, BLOCK A kolkata , City1: KOLKATA , State1: WEST BENGAL , ZIP1: 700001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9454123990 , Phone1: , Phone2: , Phone3: , Phone4: , Email: snehareddy@gmail.com , Email1: , Email2: , Email3: , Email4: ',
20 [
21 'Name: Swati Gupta , First: Swati , Middle: , Last: Gupta , Gender: F , DOB: 2000-09-02 , Spouse: , Mother: , Father: , Company: RETAIL GIANT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: PLOT 91, NEAR TEMPLE lucknow , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: PLOT 91, NEAR TEMPLE lucknow , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9447112584 , Phone1: , Phone2: , Phone3: , Phone4: , Email: swatigupta@yahoo.com , Email1: , Email2: , Email3: , Email4: ',
22 'Name: Kavya Sharma , First: Kavya , Middle: , Last: Sharma , Gender: F , DOB: 2002-02-20 , Spouse: , Mother: , Father: , Company: PAYTM , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 477 LAJPAT NAGAR NEAR TEMPLE , City: MUMBAI , State: MAHARASHTRA , ZIP: 400017 , Address1: 477 LAJPAT NAGAR NEAR TEMPLE , City1: MUMBAI , State1: MAHARASHTRA , ZIP1: 400017 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 7168571579 , Phone1: , Phone2: , Phone3: , Phone4: , Email: kavyasharma@workmail.com , Email1: , Email2: , Email3: , Email4: ',
23 'Name: Priya Reddy , First: Priya , Middle: , Last: Reddy , Gender: F , DOB: 1983-07-03 , Spouse: , Mother: , Father: , Company: GLOBAL INFOTECH PVT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 401, LAKE APARTMENT, 24 MAIN ROAD , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: FLAT 401, LAKE APARTMENT, 24 MAIN ROAD , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9208449460 , Phone1: , Phone2: , Phone3: , Phone4: , Email: priyareddy@gmail.com , Email1: priya.reddy@globalinfotech.com , Email2: , Email3: , Email4: ',
24 'Name: Nitin Rao , First: Nitin , Middle: , Last: Rao , Gender: M , DOB: 1987-12-02 , Spouse: , Mother: , Father: , Company: RELIANCE JIO , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 612 BANJARA HILLS NEAR PARK , City: COIMBATORE , State: TAMIL NADU , ZIP: 641039 , Address1: 612 BANJARA HILLS NEAR PARK , City1: COIMBATORE , State1: TAMIL NADU , ZIP1: 641039 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9358550137 , Phone1: , Phone2: , Phone3: , Phone4: , Email: nitinrao@gmail.com , Email1: , Email2: , Email3: , Email4: ',
25 'Name: Rahul Iyer , First: Rahul , Middle: , Last: Iyer , Gender: M , DOB: 1980-02-25 , Spouse: , Mother: , Father: , Company: MANUFACTURING CO PVT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 271, PARK APT, 32 MAIN RD , City: BANGALORE , State: KARNATAKA , ZIP: 560001 , Address1: FLAT 271, PARK APT, 32 MAIN RD , City1: BANGALORE , State1: KARNATAKA , ZIP1: 560001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9162959284 , Phone1: , Phone2: , Phone3: , Phone4: , Email: rahuliyer@gmail.com , Email1: rahul.iyer@manufacturingco.com , Email2: , Email3: , Email4: ',
26 ]
27)
28# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]entity-matchingCrossEncoderClassificationEvaluator| Metric | Value |
|---|---|
| accuracy | 1.0 |
| accuracy_threshold | 0.5193 |
| f1 | 1.0 |
| f1_threshold | 0.5193 |
| precision | 1.0 |
| recall | 1.0 |
| average_precision | 1.0 |
sentence1, sentence2, and label| sentence1 | sentence2 | label | |
|---|---|---|---|
| type | string | string | int |
| details |
|
|
|
| sentence1 | sentence2 | label |
|---|---|---|
Name: Riya Singh , First: Riya , Middle: , Last: Singh , Gender: F , DOB: 1992-01-11 , Spouse: , Mother: , Father: , Company: EDU SERVICES , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: HOUSE 821, GALI NO 5 chennai , City: CHENNAI , State: TAMIL NADU , ZIP: 600001 , Address1: HOUSE 821, GALI NO 5 chennai , City1: CHENNAI , State1: TAMIL NADU , ZIP1: 600001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9993381017 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | Name: Sneha Rao , First: Sneha , Middle: , Last: Rao , Gender: F , DOB: 1981-04-14 , Spouse: , Mother: , Father: , Company: MANUFACTURING CO , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: PLOT 537, PHASE 2 ahmedabad , City: AHMEDABAD , State: GUJARAT , ZIP: 380001 , Address1: PLOT 537, PHASE 2 ahmedabad , City1: AHMEDABAD , State1: GUJARAT , ZIP1: 380001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9433154770 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | 0 |
Name: Pooja Sharma , First: Pooja , Middle: , Last: Sharma , Gender: F , DOB: 1993-01-13 , Spouse: , Mother: , Father: , Company: MANUFACTURING CO , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: HOUSE 383, BLOCK A lucknow , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: HOUSE 383, BLOCK A lucknow , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9187623171 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | Name: Meena Sharma , First: Meena , Middle: , Last: Sharma , Gender: F , DOB: 1977-05-27 , Spouse: , Mother: , Father: , Company: AUTO PARTS PVT , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: PLOT 713, PHASE 2 ahmedabad , City: AHMEDABAD , State: GUJARAT , ZIP: 380001 , Address1: PLOT 713, PHASE 2 ahmedabad , City1: AHMEDABAD , State1: GUJARAT , ZIP1: 380001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9581682167 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | 0 |
Name: Swati Iyer , First: Swati , Middle: , Last: Iyer , Gender: F , DOB: 1996-06-14 , Spouse: , Mother: , Father: , Company: EDU SERVICES , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: HOUSE 339, SECTOR 12 lucknow , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: HOUSE 339, SECTOR 12 lucknow , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9390894296 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | Name: Riya Verma , First: Riya , Middle: , Last: Verma , Gender: F , DOB: 1982-12-07 , Spouse: , Mother: , Father: , Company: ENERGY SOLUTIONS , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: PLOT 123, OLD TOWN kolkata , City: KOLKATA , State: WEST BENGAL , ZIP: 700001 , Address1: PLOT 123, OLD TOWN kolkata , City1: KOLKATA , State1: WEST BENGAL , ZIP1: 700001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9918394863 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | 0 |
BinaryCrossEntropyLoss with these parameters:
1{
2 "activation_fn": "torch.nn.modules.linear.Identity",
3 "pos_weight": null
4}sentence1, sentence2, and label| sentence1 | sentence2 | label | |
|---|---|---|---|
| type | string | string | int |
| details |
|
|
|
| sentence1 | sentence2 | label |
|---|---|---|
Name: Sneha Reddy , First: Sneha , Middle: , Last: Reddy , Gender: F , DOB: 1991-07-11 , Spouse: , Mother: , Father: , Company: FINANCE CORP INDIA , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: HOUSE 687, BLOCK A kolkata , City: KOLKATA , State: WEST BENGAL , ZIP: 700001 , Address1: HOUSE 687, BLOCK A kolkata , City1: KOLKATA , State1: WEST BENGAL , ZIP1: 700001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9454123990 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | Name: Swati Gupta , First: Swati , Middle: , Last: Gupta , Gender: F , DOB: 2000-09-02 , Spouse: , Mother: , Father: , Company: RETAIL GIANT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: PLOT 91, NEAR TEMPLE lucknow , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: PLOT 91, NEAR TEMPLE lucknow , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9447112584 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | 0 |
Name: Pradeep Kumar , First: Pradeep , Middle: , Last: Kumar , Gender: M , DOB: 1984-05-19 , Spouse: , Mother: , Father: , Company: MICROSOFT INDIA , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 169 KONDHWA NEAR SCHOOL , City: BANGALORE , State: KARNATAKA , ZIP: 560066 , Address1: 169 KONDHWA NEAR SCHOOL , City1: BANGALORE , State1: KARNATAKA , ZIP1: 560066 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 8574585188 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | Name: Kavya Sharma , First: Kavya , Middle: , Last: Sharma , Gender: F , DOB: 2002-02-20 , Spouse: , Mother: , Father: , Company: PAYTM , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: 477 LAJPAT NAGAR NEAR TEMPLE , City: MUMBAI , State: MAHARASHTRA , ZIP: 400017 , Address1: 477 LAJPAT NAGAR NEAR TEMPLE , City1: MUMBAI , State1: MAHARASHTRA , ZIP1: 400017 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 7168571579 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: , Email2: , Email3: , Email4: | 0 |
Name: Priya Prasad Reddy , First: Priya , Middle: Prasad , Last: Reddy , Gender: F , DOB: 1983-07-03 , Spouse: , Mother: , Father: , Company: GLOBAL INFOTECH , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 401, LAKE APT, 24 MAIN RD , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: FLAT 401, LAKE APT, 24 MAIN RD , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9149203558 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: [object Object] , Email2: , Email3: , Email4: | Name: Priya Reddy , First: Priya , Middle: , Last: Reddy , Gender: F , DOB: 1983-07-03 , Spouse: , Mother: , Father: , Company: GLOBAL INFOTECH PVT LTD , ParentCompany: , TaxID: , LicenseID: , PassportID: , Address: FLAT 401, LAKE APARTMENT, 24 MAIN ROAD , City: LUCKNOW , State: UTTAR PRADESH , ZIP: 226001 , Address1: FLAT 401, LAKE APARTMENT, 24 MAIN ROAD , City1: LUCKNOW , State1: UTTAR PRADESH , ZIP1: 226001 , Address2: , City2: , State2: , ZIP2: , Address3: , City3: , State3: , ZIP3: , Address4: , City4: , State4: , ZIP4: , Phone: 9208449460 , Phone1: , Phone2: , Phone3: , Phone4: , Email: [object Object] , Email1: [object Object] , Email2: , Email3: , Email4: | 1 |
BinaryCrossEntropyLoss with these parameters:
1{
2 "activation_fn": "torch.nn.modules.linear.Identity",
3 "pos_weight": null
4}eval_strategy: stepsper_device_train_batch_size: 64per_device_eval_batch_size: 64learning_rate: 2e-05weight_decay: 0.01num_train_epochs: 1warmup_ratio: 0.1use_cpu: Trueload_best_model_at_end: Truedataloader_pin_memory: Falseoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 64per_device_eval_batch_size: 64per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 1max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Trueuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falsebf16: Falsefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Trueignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Falsedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Validation Loss | entity-matching_average_precision |
|---|---|---|---|
| 0.3333 | 1 | 0.0162 | 1.0 |
| 0.6667 | 2 | 0.0148 | 1.0 |
| 1.0 | 3 | 0.0162 | 1.0 |
1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}