I have two entities transaction & product
- transaction have pattern starting 4 digit is 1400 or 4280 and total of 12 digits
- product could any random number within 8 digits
when I trying to parse product it does not extract the correct details.
inputs
1 product code is 14005552 shows incorrect output as it has starting with 1400
2 product id is 43916357 shows correct output
- 14005552 shows correct output
I have also defined regex for then
screenshot is also attached
Training data file
intent:product_details
- 428009199990
- 428009199123
- 428009199491
- 428009181013
- 428009181934
- 428009182122
- 428009182914
- 428009183191
- 428009183909
- 428009184943
- 428009184040
- 428009184493
- 428009309404
- 428008929940
- 428010431804
- 428013149234
- 140044829922
- 140043994442
- 140040832894
- 140043332444
- 140041900892
- 140042999431
- 140042440984
- 140044949903
- 140042892191
- customer’s transaction no is 428094808943
- customer’s transaction no is 140044400191
- customer’s transaction no is 140000001190
- customer’s transaction no is 428004809344
- customer’s transaction no is 140000002199
- customer’s transaction no is 428009930990
- transaction number is 428094994989
- transaction number is 140094823489
- transaction number is 428082942841
- transaction number is 140093991424
- transaction number is 140000942894
- transaction number is 428013991443
- transaction number is 428099399414
- transaction code 428004294944
- transaction is 140012239310
- transaction 428014234841
- product no is 47586969
- customer’s product no is 73912412
- customer’s product number is 00237855
- customer’s product no is 26563298
- product number is 52888741
- product code is 79214184
- product is 05539627
- product no is 29193756
- customer’s product no is 58234578
- customer’s product number is 87275400
- customer’s product no is 16316222
- product number is 45357044
- product code is 74397866
- product is 03438688
- product no is 37916458
- customer’s product no is 91374628
- customer’s product number is 44832798
- customer’s product no is 98290968
- product number is 51749138
- product code is 05207308
- product is 58665478
- product no is 86423791
- customer’s product no is 37912846
- customer’s product number is 10598099
- customer’s product no is 59109044
- product number is 07619989
- product code is 56130934
- product is 04641879
- product no is 65329874
- customer’s product no is 19378264
- customer’s product number is 26573346
- customer’s product no is 72524956
- product number is 18476566
- product code is 64428176
- product is 10379786
- product no is 91376482
- customer’s product no is 56428356
- customer’s product number is 21480230
- customer’s product no is 13467896
- product number is 48416022
- product code is 83364148
- product is 18312274
- product no is 82314656 and
- customer’s product no is 93654754 and
- customer’s product number is 04994852 and
- customer’s product no is 16334950 and
- product number is 27675048 and
- product code is 39015146 and
- product is 50355244 and
- [14702515] (product:14702515)
- 64823579
- 82529142
- 00234705
- 17940268
- 35645831
- 53351394
- 71056957
- 88762520
- 06468083
- 24173646
- 41879209
- 59584772
- 77290335
- 94995898
- 12701461
- 30407024
- 48112587
- 65818150
- 83523713
- 01229276
- 18934839
- 36640402
- 54345965
- 72051528
- 89757091
- 07462654
- 25168217
- 42873780
- 60579343
- 78284906
- 95990469
- 13696032
- 31401595
- 49107158
- 66812721
- 84518284
- 02223847
- 19929410
- 37634973
- 55340536
- 73046099
- 90751662
- 08457225
- 26162788
- 43868351
- 61573914
- 79279477
- 96985040
- 14690603
- 32396166
- 50101729
- 67807292
- 85512855
- 03218418
- 20923981
- 38629544
- 56335107
- 74040670
- 91746233
- 09451796
- 27157359
- 44862922
- 62568485
- 80274048
- 97979611
- 15685174
- 33390737
- 51096300
- 68801863
- 86507426
- 04212989
- 21918552
- 39624115
- 57329678
- 75035241
- 92740804
- 10446367
- 28151930
- 45857493
- 63563056
- 81268619
- 98974182
- 16679745
- 34385308
- 52090871
- 69796434
- 87501997
- 05207560
- 22913123
- 40618686
regex:product
- \b^\d{8}$\b
regex:transaction
- \b^\d{12}$\b
Config file
language: en pipeline:
- name: “SpacyNLP” model: “en_core_web_lg”
- name: “SpacyTokenizer”
- name: “SpacyFeaturizer”
- name: “RegexFeaturizer”
- name: “CRFEntityExtractor”
- name: “CountVectorsFeaturizer”
- name: “EntitySynonymMapper”
- name: “EmbeddingIntentClassifier”
- name: DucklingHTTPExtractor url: http://localhost:8000 dimensions:
- phone-number
- time
- amount-of-money policies:
- name: MemoizationPolicy
- name: KerasPolicy
- name: MappingPolicy
results:
@akelad @Juste @juste_petr @JulianGerhard @GauravGaikwad94 @naoko