Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.7 kB
0
Indexable
Output-

loading models Matrix ................
loading model Config................
loading Actual Data...................
loading unique noun in train data with vector value for context search ................
Input processed Text :  process hro payroll benefits payments incorrect result dear sir, per attached screen shots
Into Input Evaluation function
Text :  process hro payroll benefits payments incorrect result dear sir, per attached screen shots
TFIDF Vector :  TfidfVectorizer(stop_words='english')
Input TF IDF :    (0, 6601)	0.36862564889350036
  (0, 6534)	0.3496942376519081
  (0, 6282)	0.19397247510394874
  (0, 6005)	0.35528650950739105
  (0, 5358)	0.24346070031010753
  (0, 5005)	0.2336641199819507
  (0, 4999)	0.36153813756029163
  (0, 3300)	0.2182457922117022
  (0, 3060)	0.3496942376519081
  (0, 1767)	0.18937766196959577
  (0, 780)	0.3103140646757555
  (0, 564)	0.17696718472159018
X :  [[0. 0. 0. ... 0. 0. 0.]]
Cosine Similarity :  [[0.46867088]
 [0.2368872 ]
 [0.        ]
 ...
 [0.01469617]
 [0.        ]
 [0.04955105]]
DF CHeck :     ticket_id     score
0          0  0.468671
1          1  0.236887
2          2  0.000000
3          3  0.119194
4          4  0.222561
Score :  [0.4686708758445488, 0.4789154257385584]
Indexes :  Int64Index([0, 2294], dtype='int64')
Into Input Evaluation Count function
Text :  process hro payroll benefits payments incorrect result dear sir, per attached screen shots
Input Count :    (0, 564)	1
  (0, 780)	1
  (0, 1767)	1
  (0, 3060)	1
  (0, 3300)	1
  (0, 4999)	1
  (0, 5005)	1
  (0, 5358)	1
  (0, 6005)	1
  (0, 6282)	1
  (0, 6534)	1
  (0, 6601)	1
X :  [[0 0 0 ... 0 0 0]]

Cosine Similarity inside Input evaluation :  [[0.53674504]
 [0.30815782]
 [0.        ]
 ...
 [0.02254174]
 [0.        ]
 [0.08006408]]
Score :  [0.5367450401216933, 0.5051814855409227]
Indexes :  Int64Index([0, 2294], dtype='int64')
TF Count Pred :        ticket_id ticket_category    ticket_type            ticket_item  \
0             0         process  hro - payroll  benefits and payments   
2294       2294         process  hro - payroll  benefits and payments   

              ticket_summary  \
0           incorrect result   
2294  incorrect calculations   

                                            ticket_desc ticket_severity  \
0     dear sir,\nas per the attached screen shots, m...         default   
2294  please check increment date of emp. no. 110011...           minor   

     person_who_resolved                                concatenated_string  \
0           tanvirmirkar  process hro payroll benefits payments incorrec...   
2294        tanvirmirkar  process hro payroll benefits payments incorrec...   

                                                  Nouns            Noun  \
0     [process, hro, payroll, benefits, payments, re...  [tanvirmirkar]   
2294  [process, hro, payroll, benefits, payments, ca...  [tanvirmirkar]   

         score  
0     0.536745  
2294  0.505181  
USer recommendation List from event_prediction_tfidf function :  ['process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone tanvirmirkar', 'process hro payroll benefits payments incorrect calculations please check increment date emp wef incorrect tanvirmirkar', 'process hro payroll benefits payments incorrect calculations please check increment date emp wef incorrect tanvirmirkar', 'process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone tanvirmirkar']
TFIDF Prediction Done ['process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone tanvirmirkar', 'process hro payroll benefits payments incorrect calculations please check increment date emp wef incorrect tanvirmirkar', 'process hro payroll benefits payments incorrect calculations please check increment date emp wef incorrect tanvirmirkar', 'process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone tanvirmirkar']
User Recommendations: ['process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone tanvirmirkar', 'process hro payroll benefits payments incorrect calculations please check increment date emp wef incorrect tanvirmirkar', 'process hro payroll benefits payments incorrect calculations please check increment date emp wef incorrect tanvirmirkar', 'process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone tanvirmirkar']

The main thing is it is returning a list of indexes from original dataframe concatenated text along with output person who resolved in a list

for eg-
process hro payroll benefits payments incorrect result dear siras per attached screen shots mobile spoc entered mobile recovery amount recovery system show zero recovery amountplease check resolve issue discussed phone 
is the input columns concatenated
and 
tanvirmirkar is the person_who_resolved so, we need just the person_who_resolved in the output, can it be possible.

How to do this.