gyb-classification-model 0.1.7__tar.gz → 0.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gyb_classification_model-0.1.7/gyb_classification_model.egg-info → gyb_classification_model-0.1.9}/PKG-INFO +1 -1
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/gyb_classification_model/predictor.py +4 -4
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9/gyb_classification_model.egg-info}/PKG-INFO +1 -1
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/gyb_classification_model.egg-info/SOURCES.txt +9 -9
- gyb_classification_model-0.1.7/models/label_mapV29.pkl → gyb_classification_model-0.1.9/models/label_mapV30.pkl +0 -0
- gyb_classification_model-0.1.9/models/textClassificationModelV30.pkl +0 -0
- gyb_classification_model-0.1.9/models/vectorizerV30.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/setup.py +1 -1
- gyb_classification_model-0.1.9/test/test.py +9 -0
- gyb_classification_model-0.1.7/models/textClassificationModelV29.pkl +0 -0
- gyb_classification_model-0.1.7/models/vectorizerV29.pkl +0 -0
- gyb_classification_model-0.1.7/test/test.py +0 -9
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/LICENSE +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/MANIFEST.in +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/README.md +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/app/__init__.py +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/app/main.py +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/gyb_classification_model/__init__.py +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/gyb_classification_model.egg-info/dependency_links.txt +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/gyb_classification_model.egg-info/requires.txt +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/gyb_classification_model.egg-info/top_level.txt +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/models/MedicalReportClassifierV10.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/models/MedicalReportLabelMapV10.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/models/MedicalReportVectorizerV10.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/models/OnlyDeliverSlipPharmOrderModelV4.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/models/OnlyDeliverSlipPharmOrderVectorizerV4.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/models/OnlyDeliverSlipPharmOrderlabel_mapV4.pkl +0 -0
- {gyb_classification_model-0.1.7 → gyb_classification_model-0.1.9}/setup.cfg +0 -0
@@ -17,13 +17,13 @@ script_dir = os.path.dirname(os.path.abspath(__file__))
|
|
17
17
|
base_path = os.path.abspath(os.path.join(script_dir, '../models'))
|
18
18
|
|
19
19
|
# Load files
|
20
|
-
with open(os.path.join(base_path, "
|
20
|
+
with open(os.path.join(base_path, "vectorizerV30.pkl"), "rb") as f:
|
21
21
|
tfidf_vectorizer = pickle.load(f)
|
22
22
|
|
23
|
-
with open(os.path.join(base_path, "
|
23
|
+
with open(os.path.join(base_path, "label_mapV30.pkl"), "rb") as f:
|
24
24
|
reverse_label_map = pickle.load(f)
|
25
25
|
|
26
|
-
with open(os.path.join(base_path, "
|
26
|
+
with open(os.path.join(base_path, "textClassificationModelV30.pkl"), "rb") as f:
|
27
27
|
model = pickle.load(f)
|
28
28
|
|
29
29
|
|
@@ -101,7 +101,7 @@ def predict_text(input_text):
|
|
101
101
|
|
102
102
|
category = reverse_label_map.get(predicted_label)
|
103
103
|
|
104
|
-
if
|
104
|
+
if probability <= 0.6:
|
105
105
|
category = "MISC"
|
106
106
|
|
107
107
|
order_delivery = ["DELIVERY_SLIP_ORDER"]
|
@@ -10,9 +10,9 @@ app/../models/MedicalReportVectorizerV10.pkl
|
|
10
10
|
app/../models/OnlyDeliverSlipPharmOrderModelV4.pkl
|
11
11
|
app/../models/OnlyDeliverSlipPharmOrderVectorizerV4.pkl
|
12
12
|
app/../models/OnlyDeliverSlipPharmOrderlabel_mapV4.pkl
|
13
|
-
app/../models/
|
14
|
-
app/../models/
|
15
|
-
app/../models/
|
13
|
+
app/../models/label_mapV30.pkl
|
14
|
+
app/../models/textClassificationModelV30.pkl
|
15
|
+
app/../models/vectorizerV30.pkl
|
16
16
|
gyb_classification_model/__init__.py
|
17
17
|
gyb_classification_model/predictor.py
|
18
18
|
gyb_classification_model.egg-info/PKG-INFO
|
@@ -26,16 +26,16 @@ gyb_classification_model/../models/MedicalReportVectorizerV10.pkl
|
|
26
26
|
gyb_classification_model/../models/OnlyDeliverSlipPharmOrderModelV4.pkl
|
27
27
|
gyb_classification_model/../models/OnlyDeliverSlipPharmOrderVectorizerV4.pkl
|
28
28
|
gyb_classification_model/../models/OnlyDeliverSlipPharmOrderlabel_mapV4.pkl
|
29
|
-
gyb_classification_model/../models/
|
30
|
-
gyb_classification_model/../models/
|
31
|
-
gyb_classification_model/../models/
|
29
|
+
gyb_classification_model/../models/label_mapV30.pkl
|
30
|
+
gyb_classification_model/../models/textClassificationModelV30.pkl
|
31
|
+
gyb_classification_model/../models/vectorizerV30.pkl
|
32
32
|
models/MedicalReportClassifierV10.pkl
|
33
33
|
models/MedicalReportLabelMapV10.pkl
|
34
34
|
models/MedicalReportVectorizerV10.pkl
|
35
35
|
models/OnlyDeliverSlipPharmOrderModelV4.pkl
|
36
36
|
models/OnlyDeliverSlipPharmOrderVectorizerV4.pkl
|
37
37
|
models/OnlyDeliverSlipPharmOrderlabel_mapV4.pkl
|
38
|
-
models/
|
39
|
-
models/
|
40
|
-
models/
|
38
|
+
models/label_mapV30.pkl
|
39
|
+
models/textClassificationModelV30.pkl
|
40
|
+
models/vectorizerV30.pkl
|
41
41
|
test/test.py
|
Binary file
|
Binary file
|
Binary file
|
@@ -6,7 +6,7 @@ long_description = (curr_directory / "README.md").read_text()
|
|
6
6
|
|
7
7
|
setup(
|
8
8
|
name='gyb-classification-model', # Package name (what you'll pip install)
|
9
|
-
version='0.1.
|
9
|
+
version='0.1.9',
|
10
10
|
author='Hrutik-M',
|
11
11
|
author_email='hrutik.m@codearray.tech',
|
12
12
|
description='ML classification models package',
|
@@ -0,0 +1,9 @@
|
|
1
|
+
from gyb_classification_model import predictor
|
2
|
+
|
3
|
+
text = "*000804* LM General Insurance Company P.O. Box 5014 Scranton PA 18505-5014 - INJURY CARE CHIROPRACTIC 2167 E 21st St Ste 148 Brooklyn, NY, 11229-3607 Liberty Mutual® INSURANCE CONTACT US Melissa.Maldonado@LibertyMut ual.com Direct: (516) 479-0773 Fax: (888) 268-8840 LM General Insurance Company P.O. Box 5014 Scranton PA 18505-5014 United States (800) 225-2467 LibertyMutual.com July 29, 2025 Claim Number: Date of Incident: Claimant: 059251780-04 04/27/2025 ANNA SARIBEGOV Policy Number: AOS-221-630070-40 Dear Billing Department, We take our responsibility to our customers seriously, and part of that responsibility is keeping you informed. Recently we've had to delay the processing of your bill. The reason for this delay is we haven't yet received all necessary information to complete our investigation, which may include a recorded interview, signed statement, and/or Examination Under Oath from the driver and/or passenger(s) involved OR other parties involved or related to the occurrence. Additional documentation may also be requested at the time of the Examination Under Oath or thereafter which may impact the investigation of this claim. This is the second notice .. Billing Details Patient Account Number: 100884709 Date of Service: From: 05/21/2025 To: 05/21/2025 Bill Amount: $1,000.05 Bill ID: N2032570017 We're Here to Help If you have any questions, please contact me and I'll be happy to help. I can assist you more quickly if you reference the Claim No. 059251780-04 in all communications. *400000010001000001000804804* Sincerely, MELISSA MALDONADO Claims Department CWL0116 Status to Provider 059251780-04 Page 1 of 2 :"
|
4
|
+
|
5
|
+
# processed_text = predictor.preprocess_text(text)
|
6
|
+
category = predictor.predict_text(text)
|
7
|
+
|
8
|
+
print(category)
|
9
|
+
|
Binary file
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
from gyb_classification_model import predictor
|
2
|
-
|
3
|
-
text = "WERT MEDICAL CARE P.C. PRIMARY SURGEON: MATTHEW WERT MD, SANFORD WERT MD ASSISTANT SURGEON: MATTHEW WERT MD, SANFORD WERT MD, JESSE INKLES PA-C, HANNAH ECKSTEIN PA-C, CHRISTOPHER CARROLL PA-C, I. Wert PA-C INSURANCE (NF,) WC, PVT, LEIN, FUND) LS FAHMY, DIANA DOB:09/07/1989 (35) DOS:08/11/2025 Sex:Female MRN:4343 Physician: Wert, Matthew CPT SHOULDER (RT or LT or BILATERAL) 1 0.5 23472 Total Shoulder Arthroplasty 23700 Manipulation of shoulder joint (anesthesia) 813.77 406.89 29806 Arthroscopy, shoulder, surgical; capsulorrhaphy (Bankart Arthroscopy) 2698.28 1349.14 29807 Arthroscopy, repair of SLAP lesion 2738.59 1369.30 29819 Arthroscopy, surgical w/ removal of loose body or foreign body 1957.57 978.79 29820 Synovectomy, limited 1791.29 895.65 29821 Synovectomy, complete 1957.57 978.79 29822 Shoulder Arthroscopy / debridement, limited (2-3 Areas) Labrum Tear Chondromalacia GH Joint 1902.15 951.07 29823 Debridement, extensive (3 ormore areas) 2065.91 1032.96 29824 Arthroscopy, shoulder, surgical; distal claviculectomy including distal articular surface (Mumford procedure) 1305.05 652.53 29825 Lysis and resection of adhesions, w/ or w/o manipulation 2060.87 1030.44 29826 Decompression of subacromial space with partial acromioplasty w/ or w/o coracoacromial release 496.32 248.16 29827 Arthroscopy, shoulder, surgical; with rotator cuff repair 2348.08 1174.04 20610 Shoulder Injection 62.99 31.50 OTHER (PLEASE CODE) TOTAL CPT ANKLE / FOOT (RT or LT or BILATERAL) 1 0.5 27814 Open treatment of bimalleolar fracture 2174.24 1087.12 27792 Open treatment of Lateral malleolus fracture 1957.57 978.76 29897 Arthroscopy, ankle, surgical 1791.29 895.65 29894 Arthroscopic removal of loose body or foreign body 1892.07 946.04 29895 Synovectomy, partial 1791.29 895.65 29898 Debridement, extensive 1957.57 978.79 27829 Ankle syndesmosis repair 1305.05 652.53 29891 Excision of OCD lesion 2632.77 1316.39 27650 Achilles tendon repair 1957.57 978.79 OTHER (PLEASE CODE) TOTAL Partial RIC/Subscap Tear Labrum Tear Chondromalacia GH Joint Partial RTC/Subscap Tear "
|
4
|
-
|
5
|
-
# processed_text = predictor.preprocess_text(text)
|
6
|
-
category = predictor.predict_text(text)
|
7
|
-
|
8
|
-
print(category)
|
9
|
-
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|