An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
Hello thanh.tran quoc,
Greetings!
Thanks for raising this question in Q&A forum.
This is a known usability issue that a few users have run into. The most common reasons why text highlighting doesn't work in the Azure Foundry data labeling interface are: no entity type is selected before trying to highlight, a browser compatibility issue, a CORS misconfiguration on the storage account, or missing storage permissions. Let me walk you through the steps to fix this.
Step 1: Make sure you select an entity type first
This is the most commonly missed step. In the right side pane, you must first add an entity type to your project before you can start labeling your data. You cannot highlight text until at least one entity type is added and selected. So go to the right-hand pane, add your entity (e.g., "ProductName", "Date", etc.), click on it to select it, and then try to click and drag to highlight text.
Step 2: Switch to single document view
Change to a single document view from the left side in the top menu, or select a specific document to start labeling. Text selection only works when you are viewing one document at a time, not in the document list view.
Step 3: Use Microsoft Edge browser
The labeling interface works best on Microsoft Edge. If you are using another browser like Chrome or Firefox, please switch to Edge and try again, as some drag-select interactions can behave unexpectedly on other browsers.
Step 4: Check CORS settings on your storage account
A misconfigured storage account can cause the labeling UI to not respond properly. Make sure to allow GET, PUT, and DELETE methods when enabling Cross-Origin Resource Sharing (CORS). Set allowed origins to https://language.cognitive.azure.com, allow all headers by adding * to the allowed header values, and set the maximum age to 500.
Step 5: Verify your storage role permissions
Make sure that the user making changes has the Storage Blob Data Contributor role assigned to them. Without this role, the labeling interface may load but not function correctly. You can set this from the Azure portal under your Storage Account > Access Control (IAM).
Step 6: Try the autolabeling feature as an alternative
If manual highlighting still doesn't work, you can use the autolabeling feature to ensure complete labeling as a temporary workaround while the issue is investigated.
Step 7: Report it if the issue persists
If none of the above steps resolve it, this may be a portal bug. Please raise a support ticket from the Azure portal so the engineering team can look into it directly.
If this answer helps you kindly accept the answer which will help others who have similar questions.
Best Regards,
Jerald Felix.