Hi @Luiz Otavio | HSBS ,
Thanks for reaching out
I understand you are trying to apply ready to use Trainable classifier "Source code" to your files while contain source code but Microsoft purview is not able to identify those files and put label on it.
I repro the scenario and was able to test the scenario in my lab.
- I have a label which already exists. It took 24 hours for any new label to reflect.
- Create a custom policy to add trainable classifier ready to use "Source code"
I tested the source code file in matched items and got result that contains "source code".
Uploaded the source code in one drive (code in the word file) and able to detect the label automatically.
Code.docx
Make sure "Source code is trained to detect when the bulk of the text is source code. It does not detect source code text that is interspersed with plain text."
There might be a chance your auto labelling is not configured properly or the code snippet you have is not detected as source code.
Source code is identified as below:
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.