	{"id":21376,"date":"2020-11-24T16:12:06","date_gmt":"2020-11-24T16:12:06","guid":{"rendered":"https:\/\/www.artefact.com\/?post_type=news&#038;p=21376"},"modified":"2024-09-20T17:45:38","modified_gmt":"2024-09-20T16:45:38","slug":"nlu-benchmark-for-intent-detection-and-named-entity-recognition-in-call-center-conversations","status":"publish","type":"blog","link":"https:\/\/www.artefact.com\/nl\/blog\/nlu-benchmark-for-intent-detection-and-named-entity-recognition-in-call-center-conversations\/","title":{"rendered":"NLU-benchmarks voor intentiedetectie en herkenning van naamentiteiten in callcenterconversaties"},"content":{"rendered":"<p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-top:0px;--awb-padding-right:0px;--awb-padding-bottom:0px;--awb-padding-left:0px;--awb-margin-bottom:40px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_2 1_2 fusion-flex-column avada-news-bloc-image\" style=\"--awb-bg-size:cover;--awb-width-large:50%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:50%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-image-element\" style=\"text-align:left;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-1 hover-type-none\"><img decoding=\"async\" width=\"300\" height=\"74\" title=\"Medium Blog\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-300x74.png\" alt class=\"lazyload img-responsive wp-image-60582\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%274000%27%20height%3D%27992%27%20viewBox%3D%270%200%204000%20992%27%3E%3Crect%20width%3D%274000%27%20height%3D%27992%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-200x50.png 200w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-400x99.png 400w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-600x149.png 600w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-800x198.png 800w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2021\/04\/Medium-Blog-1200x298.png 1200w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 640px) 100vw, 800px\" \/><\/span><\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_2 1_2 fusion-flex-column\" style=\"--awb-padding-top:10px;--awb-padding-right:10px;--awb-padding-bottom:10px;--awb-padding-left:10px;--awb-bg-size:cover;--awb-width-large:50%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:50%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\"><p>NIEUWS \/ AI TECHNOLOGIE<\/p>\n<\/div><div class=\"fusion-text fusion-text-2\"><p>25 november 2020<br \/>\nAdviseurs van callcenters beginnen NLU in hun dagelijks leven te zien opduiken, zodat ze de verzoeken van klanten gemakkelijker kunnen beantwoorden. Om dat te kunnen doen, moet een hulpmiddel in staat zijn om tegelijkertijd het verzoek van de klant en de kenmerken ervan te herkennen, met andere woorden, een intentie en named-entities.<\/p>\n<\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-background-color:#ffffff;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-2 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-color:#ffffff;--awb-bg-color-hover:#ffffff;--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-3\" style=\"--awb-text-color:#000000;\"><p><em>\u201cOK Google, speel de Rolling Stones af op Spotify.\u201d, \u201cAlexa, wat voor weer is het vandaag in Parijs?\u201d, \u201cSiri, wie is de Franse president?\u201d.\u201d<\/em><\/p>\n<p><span style=\"font-weight: 400;\">Als u ooit stemassistenten hebt gebruikt, hebt u indirect enkele Natural Language Understanding (NLU) processen toegepast. Dezelfde logica geldt voor chatbotassistenten of geautomatiseerde routering van tickets in de klantenservice. NLU maakt al enige tijd deel uit van ons dagelijks leven en dat zal waarschijnlijk niet stoppen.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Door bijvoorbeeld de extractie van klantintentie te automatiseren, kan NLU ons helpen om de verzoeken van onze klanten sneller en nauwkeuriger te beantwoorden. Daarom is elk groot bedrijf begonnen met de ontwikkeling van een eigen oplossing. Maar met alle bibliotheken en modellen die er op NLU-gebied bestaan en die allemaal state-of-the-art of gemakkelijk te behalen resultaten claimen, is het soms ingewikkeld om je weg te vinden. Omdat we met verschillende bibliotheken hebben ge\u00ebxperimenteerd in onze NLU-projecten op Artefact, wilden we onze resultaten delen en u helpen een beter inzicht te krijgen in de huidige NLU-tools.<\/span><\/p>\n<p class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if df ek\"><span style=\"color: #ff0066;\"><strong>Wat is NLU?<\/strong><\/span><\/p>\n<p class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if df ek\">Natural Language Understanding (NLU) wordt gedefinieerd door\u00a0<a class=\"ck jk\" href=\"https:\/\/www.gartner.com\/en\/information-technology\/glossary\/nlu-natural-language-understanding\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Gartner<\/a>\u00a0als \u201chet begrijpen door computers van de structuur en betekenis van menselijke taal (<em class=\"jj\">bijv.<\/em>, Engels, Spaans, Japans), waardoor gebruikers met de computer kunnen communiceren door middel van natuurlijke zinnen\u201d. Met andere woorden, NLU is een subdomein van artificial intelligence dat de interpretatie van tekst mogelijk maakt door deze te analyseren, om te zetten in computertaal en een uitvoer te produceren in een voor mensen begrijpelijke vorm.<\/p>\n<p class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if df ek\">Als u goed kijkt naar hoe chatbots en virtuele assistenten werken, van uw verzoek tot hun antwoord, is NLU \u00e9\u00e9n laag die uw hoofdintentie en alle informatie die belangrijk is voor de machine eruit haalt, zodat deze uw verzoek het beste kan beantwoorden. Stel dat u de klantenservice van uw favoriete merk belt om te weten of uw droomtas eindelijk beschikbaar is in uw stad: NLU zal de assistent vertellen dat u een productbeschikbaarheidsverzoek hebt en het specifieke item opzoeken in de product database om uit te zoeken of het beschikbaar is op de door u gewenste locatie. Dankzij NLU hebben we een intentie, een productnaam en een locatie ge\u00ebxtraheerd.<\/p>\n<div class=\"in io ip iq aj ir\" tabindex=\"0\" role=\"button\">\n<div class=\"cx cy jl\">\n<div class=\"ix s ip iy\">\n<div class=\"jm ja s\">\n<div class=\"is it t u v iu aj bm iv iw\"><\/div>\n<p><div style=\"width: 725px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"lazyload ts tt t u v iu aj c\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27715%27%20height%3D%27258%27%20viewBox%3D%270%200%20715%20258%27%3E%3Crect%20width%3D%27715%27%20height%3D%27258%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0I1biKTnMgj7kziLM.png\" alt=\"Image for post\" width=\"715\" height=\"258\" \/><p class=\"wp-caption-text\"><em>(Hierboven: illustratie van een klantintentie en verschillende entiteiten die uit conversatie worden gehaald)<\/em><\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><span style=\"font-weight: 400;\">Natuurlijke taal zit ingebakken in de data van de meeste bedrijven en met de recente doorbraken op dit gebied, gezien de democratisering van de NLU-algoritmen, de toegang tot meer rekenkracht &amp; meer data, zijn er veel NLU-projecten gestart. Laten we er \u00e9\u00e9n bekijken.<\/span><\/p>\n<p class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if df ek\"><strong><span style=\"color: #ff0066;\">Projectpresentatie<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Een typisch project waarbij NLU wordt gebruikt is, zoals eerder vermeld, het helpen van callcenteradviseurs bij het beantwoorden van verzoeken van klanten terwijl het gesprek vordert. Hiervoor zouden we twee verschillende taken moeten uitvoeren:<\/span><\/p>\n<ul class=\"\">\n<li id=\"84be\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if jr js jt ek\" data-selectable-paragraph=\"\"><strong class=\"hm ju\">De bedoeling van de klant begrijpen<\/strong> tijdens het gesprek (d.w.z. tekstclassificatie)<\/li>\n<li id=\"75e0\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><strong class=\"hm ju\">Vang de belangrijke elementen<\/strong> waarmee het verzoek van de klant beantwoord kan worden (d.w.z. named-entity recognition), bijvoorbeeld contractnummers, producttype, productkleur, enz.<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Toen we voor het eerst keken naar de eenvoudige en kant-en-klare oplossingen die voor deze twee taken zijn uitgebracht, vonden we meer dan een dozijn frameworks, sommige ontwikkeld door GAFAM, sommige door open-source platformmedewerkers. Onmogelijk om te weten welke te kiezen voor onze use case, hoe elk van hen presteert op een concreet project en echte data, hier callcenter audiogesprekken omgezet in tekst. Daarom hebben we besloten om onze prestatiebenchmark te delen met enkele tips en voor- en nadelen voor elke oplossing die we hebben getest.<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">Het is belangrijk om op te merken dat deze benchmark gedaan is met Engelse data en getranscribeerde spraaktekst en daarom minder gebruikt kan worden als referentie voor andere talen of toepassingen die direct geschreven tekst gebruiken, <\/span><\/i><span style=\"font-weight: 400;\">bijv.<\/span><i><span style=\"font-weight: 400;\"> chatbot-gebruiksgevallen.<\/span><\/i><\/p>\n<\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-3 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-background-color:#ffffff;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-3 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-color:#ffffff;--awb-bg-color-hover:#ffffff;--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-4\" style=\"--awb-text-color:#000000;\"><p id=\"4a7e\" class=\"gm gn dn ce go gp gq gr gs gt gu gv gw gx gy gz ha hb hc hd he hf hg hh hi hj ek\"><span style=\"color: #ff0066;\"><strong>Benchmark<\/strong><\/span><\/p>\n<p><strong>Opsporing van intenties <\/strong><\/p>\n<p class=\"hk hl dn hm b hn ho gr hp hq hr gv hs ht hu hv hw hx hy hz ia ib ic id ie if df ek\" data-selectable-paragraph=\"\"><span style=\"font-weight: 400;\">Het doel is hier om te kunnen detecteren wat de klant wil, zijn\/haar intentie. Als een zin wordt gegeven, moet het model deze in de juiste klasse kunnen indelen, waarbij elke klasse overeenkomt met een vooraf gedefinieerde bedoeling. Als er meerdere klassen zijn, wordt dit een multiklasse classificatietaak genoemd. Een intentie kan bijvoorbeeld zijn \u201cwilProduct kopen\u201d of \u201czoektInformatie\u201d. In ons geval hadden we het volgende gedefinieerd <\/span><b>5 verschillende intenties<\/b><span style=\"font-weight: 400;\"> en de zes volgende oplossingen werden gebruikt voor de benchmark:<\/span><\/p>\n<ul class=\"\">\n<li id=\"1ff3\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if jr js jt ek\" data-selectable-paragraph=\"\"><a class=\"ck jk\" href=\"https:\/\/fasttext.cc\/docs\/en\/supervised-tutorial.html\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">FastText<\/strong><\/a><strong class=\"hm ju\">:<\/strong>\u00a0bibliotheek voor het effici\u00ebnt leren van woordrepresentaties en zinsclassificatie, gemaakt door Facebooks AI Research lab.<\/li>\n<li id=\"ae4c\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><a class=\"ck jk\" href=\"https:\/\/uber.github.io\/ludwig\/examples\/#natural-language-understanding\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">Ludwig<\/strong><\/a><strong class=\"hm ju\">:<\/strong> <span style=\"font-weight: 400;\">een toolbox waarmee deep learning-modellen kunnen worden getraind en getest zonder dat er code geschreven hoeft te worden, via de opdrachtregel of de programmatische API. De gebruiker hoeft alleen maar een CSV-bestand aan te leveren (of een pandas DataFrame met de programmatische API) met daarin zijn\/haar data, een lijst met kolommen die als invoer gebruikt moeten worden en een lijst met kolommen die als uitvoer gebruikt moeten worden, Ludwig doet de rest.<\/span><\/li>\n<li id=\"876d\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><strong class=\"hm ju\">Logistische regressie met\u00a0<\/strong><a class=\"ck jk\" href=\"https:\/\/spacy.io\/usage\/spacy-101\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">spaCy preprocessing<\/strong><\/a><strong class=\"hm ju\">:<\/strong> <span style=\"font-weight: 400;\">klassieke logistische regressie met behulp van de scikit-learn bibliotheek met aangepaste voorbewerking met behulp van de spaCy bibliotheek (tokeniseren, lemmatiseren, stopwoorden verwijderen).<\/span><\/li>\n<li id=\"e702\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><a class=\"ck jk\" href=\"https:\/\/github.com\/explosion\/spacy-transformers\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">BERT met spaCy pijplijn<\/strong><\/a><strong class=\"hm ju\">:<\/strong> <span style=\"font-weight: 400;\">spaCy modelpijplijnen die Hugging Face's transformatorenpakket omsluiten om gemakkelijk toegang te krijgen tot geavanceerde transformatorarchitecturen zoals BERT.<\/span><\/li>\n<li id=\"a632\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><a class=\"ck jk\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cognitive-services\/luis\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">LUIS<\/strong><\/a><strong class=\"hm ju\">:<\/strong> <span style=\"font-weight: 400;\">API-service op basis van Microsoft cloud die machine-learning toepast op de conversatietekst in natuurlijke taal van een gebruiker om de intentie en entiteiten te voorspellen.<\/span>.<\/li>\n<li id=\"0dfe\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><a class=\"ck jk\" href=\"https:\/\/github.com\/flairNLP\/flair\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">Flair<\/strong><\/a><strong class=\"hm ju\">:<\/strong>\u00a0<span style=\"font-weight: 400;\">een raamwerk voor geavanceerde NLP voor verschillende taken, zoals named entity recognition (NER), part-of-speech tagging (PoS), zinsontleding en classificatie.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">De volgende modellen zijn allemaal getraind en getest op dezelfde datasets: 1600 uitingen voor training, 400 voor testen. De modellen zijn niet verfijnd, dus sommige modellen zouden mogelijk betere prestaties kunnen leveren dan wat hieronder wordt gepresenteerd.<\/span><\/p>\n<figure class=\"ih ii ij ik il im cx cy paragraph-image\">\n<div class=\"in io ip iq aj ir\" tabindex=\"0\" role=\"button\">\n<div class=\"cx cy kr\">\n<div class=\"ix s ip iy\">\n<div class=\"ks ja s\">\n<div class=\"is it t u v iu aj bm iv iw\"><\/div>\n<p><img decoding=\"async\" class=\"lazyload va vb t u v iu aj c\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0OjPKI5wNoTgCuUKG.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0OjPKI5wNoTgCuUKG.png\" data-sizes=\"auto\" data-orig-sizes=\"700px\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27862%27%20height%3D%27289%27%20viewBox%3D%270%200%20862%20289%27%3E%3Crect%20width%3D%27862%27%20height%3D%27289%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0OjPKI5wNoTgCuUKG.png 276w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0OjPKI5wNoTgCuUKG.png 552w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0OjPKI5wNoTgCuUKG.png 640w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0OjPKI5wNoTgCuUKG.png 700w\" alt=\"Image for post\" width=\"862\" height=\"289\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div><figcaption class=\"jn jo cz cx cy jp jq ce b eu cg fx\" data-selectable-paragraph=\"\">Prestatieresultaten van verschillende modellen voor intentiedetectie<\/figcaption><\/figure>\n<p id=\"8774\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if df ek\" data-selectable-paragraph=\"\"><em class=\"jj\">*Inferentietijd op lokale Macbook Air (1,6 GHz dual-core Intel Core i5-8 Go 1600 MHz DDR3 RAM).<\/em><\/p>\n<ul class=\"\">\n<li id=\"f4ae\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if jr js jt ek\" data-selectable-paragraph=\"\">In het algemeen behalen alle oplossingen goede of zelfs zeer goede resultaten (F1-score &gt; 70%).<\/li>\n<li id=\"f9b8\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\">Een van de ongemakken van Ludwig en LUIS is dat het erg \u201cblack-box\u201d modellen zijn, waardoor ze moeilijker te begrijpen en af te stellen zijn.<\/li>\n<li id=\"e785\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\">LUIS is de enige geteste oplossing die niet open source is en dus veel duurder. Bovendien kan het gebruik van de Python API complex zijn, omdat het oorspronkelijk ontworpen is voor gebruik via een klik-knop interface. Het kan echter een oplossing zijn die de voorkeur verdient als u zich in de context van een project bevindt dat in productie moet gaan en waarvan de infrastructuur bijvoorbeeld op Azure is gebouwd, de integratie van het model zal dan gemakkelijker zijn.<\/li>\n<\/ul>\n<p id=\"7814\" class=\"ka gn dn ce go kb kc kd gs ke kf kg gw kh ki kj ha kk kl km he kn ko kp hi kq ek\"><strong><span style=\"color: #ff0066;\">Entiteiten extractie<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Het doel is om specifieke woorden te kunnen vinden en ze correct in te delen in vooraf gedefinieerde categorie\u00ebn. Nadat u hebt gedetecteerd wat uw klant wil doen, kan het zijn dat u meer informatie in zijn\/haar verzoek moet vinden. Als een klant bijvoorbeeld iets wil kopen, wilt u misschien weten welk product het is, in welke kleur, of als een klant een product wil retourneren, wilt u misschien weten op welke datum of in welke winkel de aankoop is gedaan. In ons geval hadden we het volgende gedefinieerd <\/span><b>16 aangepaste entiteiten<\/b><span style=\"font-weight: 400;\">9 productgerelateerde entiteiten (naam, kleur, type, materiaal, grootte, ...) en extra entiteiten met betrekking tot geografie en tijd. Voor intentiedetectie zijn verschillende oplossingen gebruikt om een benchmark te maken:<\/span><\/p>\n<ul class=\"\">\n<li id=\"242d\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if jr js jt ek\" data-selectable-paragraph=\"\"><a class=\"ck jk\" href=\"https:\/\/spacy.io\/usage\/training#ner\" target=\"_blank\" rel=\"noopener nofollow noreferrer\"><strong class=\"hm ju\">spaCy<\/strong><\/a><strong class=\"hm ju\">:<\/strong> een open-source bibliotheek voor geavanceerde verwerking van natuurlijke taal in Python die verschillende functies biedt, waaronder Named Entity Recognition (herkenning van namen).<\/li>\n<li id=\"ae57\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><strong class=\"hm ju\">LUIS:<\/strong>\u00a0<em class=\"jj\">zie boven<\/em><\/li>\n<li id=\"e8d0\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><strong class=\"hm ju\">Ludwig:<\/strong><em class=\"jj\">\u00a0zie boven<\/em><\/li>\n<li id=\"efaa\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\"><strong class=\"hm ju\">Flair:<\/strong>\u00a0<em class=\"jj\">zie boven<\/em><\/li>\n<\/ul>\n<p id=\"06f5\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if df ek\" data-selectable-paragraph=\"\"><span style=\"font-weight: 400;\">De volgende modellen zijn allemaal getraind en getest op dezelfde datasets: 1600 uitingen voor training, 400 voor testen. De modellen zijn niet verfijnd, dus sommige modellen zouden mogelijk betere prestaties kunnen leveren dan wat hieronder wordt gepresenteerd.<\/span><\/p>\n<figure class=\"ih ii ij ik il im cx cy paragraph-image\">\n<div class=\"cx cy kt\">\n<div class=\"ix s ip iy\">\n<div class=\"ku ja s\">\n<div class=\"is it t u v iu aj bm iv iw\"><\/div>\n<p><img decoding=\"async\" class=\"lazyload va vb t u v iu aj c\" src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0xOx9HfmdoP11xP-r.png\" data-orig-src=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0xOx9HfmdoP11xP-r.png\" data-sizes=\"auto\" data-orig-sizes=\"528px\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27528%27%20height%3D%27158%27%20viewBox%3D%270%200%20528%20158%27%3E%3Crect%20width%3D%27528%27%20height%3D%27158%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0xOx9HfmdoP11xP-r.png 276w, https:\/\/www.artefact.com\/\/wp-content\/uploads\/2024\/09\/0xOx9HfmdoP11xP-r.png 528w\" alt=\"Image for post\" width=\"528\" height=\"158\" \/><\/p>\n<\/div>\n<\/div>\n<\/div><figcaption class=\"jn jo cz cx cy jp jq ce b eu cg fx\" data-selectable-paragraph=\"\">Prestatieresultaten van verschillende modellen voor named entity recognition<\/figcaption><\/figure>\n<ul class=\"\">\n<li id=\"47eb\" class=\"hk hl dn hm b hn je gr hp hq jf gv hs ht jg hv hw hx jh hz ia ib ji id ie if jr js jt ek\" data-selectable-paragraph=\"\">Twee modellen presteren erg goed op het gebied van herkenning van aangepaste naamentiteiten, spaCy en LUIS. Ludwig en Flair zouden wat verfijning nodig hebben om betere resultaten te behalen, vooral in termen van terughalen.<\/li>\n<li id=\"93b5\" class=\"hk hl dn hm b hn jv gr hp hq jw gv hs ht jx hv hw hx jy hz ia ib jz id ie if jr js jt ek\" data-selectable-paragraph=\"\">Een voordeel van LUIS is dat de gebruiker een aantal geavanceerde functies voor entiteitherkenning kan gebruiken, zoals\u00a0<a class=\"ck jk\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cognitive-services\/luis\/luis-how-to-add-features\" rel=\"noopener nofollow\" target=\"_blank\">descriptoren<\/a> die hints geeft dat bepaalde woorden en zinnen deel uitmaken van een entiteitdomeinwoordenschat (bijv.: kleurenwoordenschat = zwart, wit, rood, blauw, marineblauw, groen).<\/li>\n<\/ul>\n<p id=\"ebcd\" class=\"gm gn dn ce go gp gq gr gs gt gu gv gw gx gy gz ha hb hc hd he hf hg hh hi hj ek\"><span style=\"color: #ff0066;\"><strong class=\"az\">Conclusie<\/strong><\/span><\/p>\n<p id=\"02e8\" class=\"hk hl dn hm b hn ho gr hp hq hr gv hs ht hu hv hw hx hy hz ia ib ic id ie if df ek\" data-selectable-paragraph=\"\"><span style=\"font-weight: 400;\">Van de oplossingen die getest zijn op onze callcenter dataset, of het nu gaat om intentiedetectie of entiteitherkenning, springt er geen enkele uit qua prestaties. Onze ervaring is dat de keuze voor de ene oplossing boven de andere gebaseerd moet zijn op hun praktische bruikbaarheid en op uw specifieke gebruikssituatie (gebruikt u Azure al, hebt u liever meer vrijheid om uw modellen te verfijnen...). Ter herinnering: we hebben de bibliotheken gewoon genomen zoals ze zijn om deze benchmark te produceren, zonder de modellen te verfijnen, dus de weergegeven resultaten moeten met een kleine terugblik worden bekeken en zouden kunnen vari\u00ebren bij een andere use case of met meer training data.<\/span><\/p>\n<\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-4 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--link_hover_color: #ff0066;--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-top:0px;--awb-padding-right:0px;--awb-padding-bottom:0px;--awb-padding-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1440px + 20px );margin-left: calc(-20px \/ 2 );margin-right: calc(-20px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-4 fusion_builder_column_1_2 1_2 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:50%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:50%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-image-element\" style=\"text-align:center;--awb-margin-top:0px;--awb-margin-right:0px;--awb-margin-bottom:0px;--awb-margin-left:0px;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\"fusion-imageframe imageframe-none imageframe-2 hover-type-none\"><img decoding=\"async\" width=\"1057\" height=\"591\" title=\"data-driven\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%271057%27%20height%3D%27591%27%20viewBox%3D%270%200%201057%20591%27%3E%3Crect%20width%3D%271057%27%20height%3D%27591%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-orig-src=\"https:\/\/www.artefact.com\/wp-content\/uploads\/2020\/06\/Global-Newsletter-Data-Digest_LinkedIn_600x315_april.jpg\" alt class=\"lazyload img-responsive wp-image-30246\"\/><\/span><\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-5 fusion_builder_column_1_2 1_2 fusion-flex-column fusion-flex-align-self-center fusion-column-inner-bg-wrapper\" style=\"--awb-inner-bg-size:cover;--awb-width-large:50%;--awb-margin-top-large:0px;--awb-spacing-right-large:10px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:10px;--awb-width-medium:50%;--awb-order-medium:0;--awb-spacing-right-medium:10px;--awb-spacing-left-medium:10px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:10px;--awb-spacing-left-small:10px;\"><span class=\"fusion-column-inner-bg hover-type-none\"><a class=\"fusion-column-anchor\" href=\"https:\/\/go.pardot.com\/l\/597421\/2020-05-06\/2k5zzj\" target=\"_blank\" rel=\"noopener\"><span class=\"fusion-column-inner-bg-image\"><\/span><\/a><\/span><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-center fusion-content-layout-column\"><div class=\"fusion-text fusion-text-5\"><p><b>Ge\u00efnteresseerd in digitaal en data marketing?<\/b><\/p>\n<p>Meld u aan voor Data Digest, de nieuwsbrief van Artefact, en ontvang elke maand bruikbaar advies, inzichten en meningen in uw inbox.<\/p>\n<p><b>Schrijf me in!<\/b><\/p>\n<\/div><\/div><\/div><\/div><\/div><\/p>","protected":false},"excerpt":{"rendered":"<p>25 november 2020<br \/>\nAdviseurs van callcenters beginnen NLU in hun dagelijks leven te zien opduiken, zodat ze de verzoeken van klanten gemakkelijker kunnen beantwoorden. Om dat te kunnen doen, moet een hulpmiddel in staat zijn om tegelijkertijd het verzoek van de klant en de kenmerken ervan te herkennen, met andere woorden, een intentie en named-entities.<\/p>","protected":false},"featured_media":21377,"parent":0,"template":"","meta":{"_acf_changed":false,"ep_exclude_from_search":false},"blog-category":[2995,21930],"blog-language":[2991],"class_list":["post-21376","blog","type-blog","status-publish","has-post-thumbnail","hentry","blog-category-ai-technology","blog-category-finance","blog-language-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/blog\/21376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/types\/blog"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/media\/21377"}],"wp:attachment":[{"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/media?parent=21376"}],"wp:term":[{"taxonomy":"blog-category","embeddable":true,"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/blog-category?post=21376"},{"taxonomy":"blog-language","embeddable":true,"href":"https:\/\/www.artefact.com\/nl\/wp-json\/wp\/v2\/blog-language?post=21376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}