dialogflow-es

Wont highlight entities


I cant annotate intents any more.

Tried to highlight an entity. It didn't.

I made a video of above of the issue https://www.loom.com/share/7d05b4231dc4495ea4650842ca0dc047


Solution

  • It's a JavaScript library issue and you can try the following workaround.

    Go to your browser's developer console and load the library rangy

    // Rangy Core
    var scriptCore = document.createElement('script');
    scriptCore.src = 'https://cdnjs.cloudflare.com/ajax/libs/rangy/1.3.1/rangy-core.min.js';
    document.head.appendChild(scriptCore);
    
    // Rangy ClassApplier
    var scriptClassApplier = document.createElement('script');
    scriptClassApplier.src = 'https://cdnjs.cloudflare.com/ajax/libs/rangy/1.3.1/rangy-classapplier.min.js';
    document.head.appendChild(scriptClassApplier);
    
    // Rangy TextRange
    var scriptTextRange = document.createElement('script');
    scriptTextRange.src = 'https://cdnjs.cloudflare.com/ajax/libs/rangy/1.3.1/rangy-textrange.min.js';
    document.head.appendChild(scriptTextRange);
    
    // check load
    scriptTextRange.onload = function() {
        console.log('Rangy library loaded successfully.');
    };
    

    Dialogflow ES Entity highlight workaround