cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
steverey
Regular Visitor

Classifying colors with AI builder?

(reposted from general discussions forum)

What's the best way to provide loose matching based on color words from free text descriptions?

The idea is to be able to score two different animal descriptions where the description is free text.

As an example, if one person describes a dog as chocolate and cream and the other describes a dog as wheat and brown.

Can Power AI be trained to recognise a heap of different color adjectives as brown, and a different heap as yellow, so that both of the above descriptions are identified as brown and yellow?

Would I be better off doing this parsing the descriptions with regex functions?

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the responses.

Being a n00b with Dynamics, I've opted for the regex solution.

I can classify a custom entity to hold the regex expression and the corresponding colour, and loop through these with power automate. If I get no colour results at all, I can refer that instance for human review, which can result in the custom entity regex expression being extended.

e.g.

BROWN

(?:auburn|brown|brunette|chestnut|chocolate|cocoa|coppery|liver|mahogany|russet|tan|tawny)

BLACK

(?:black|charcoal|night|pepper|raven|sable|soot)

WHITE

(?:ivory|milk|salt|snow|white)

GREY

(?:blue|concrete|grey|pewter|silver|steel)

YELLOW

(?:blonde|butter|cream|gold|honey|wheat|yellow)

ORANGE

(?:carrot|coral|flame|orange|salmon)

RED

(?:blood|cherry|claret|mahogany|red|russet|wine)

GREEN

(?:avocado|green|khaki|spinach|pea|verdigris)

BLUE

(?:aqua|blue|bluish|navy|silver)

PURPLE

(?:berry|lavender|magenta|mauve|plum|purple|velvet|violet)

View solution in original post

3 REPLIES 3
antoinec
Power Apps
Power Apps

Hi Steve, You might be able to train a custom text classification model to classify broad descriptions in specific color buckets. It definitely won't be easy or practical but it's the best I can think of right now 🙂 You can find documentation at: https://docs.microsoft.com/en-us/ai-builder/text-classification-overview. It might be easier to just go with your other idea of creating a dictionary of colors and looking up the words to be honest.

Thanks for the responses.

Being a n00b with Dynamics, I've opted for the regex solution.

I can classify a custom entity to hold the regex expression and the corresponding colour, and loop through these with power automate. If I get no colour results at all, I can refer that instance for human review, which can result in the custom entity regex expression being extended.

e.g.

BROWN

(?:auburn|brown|brunette|chestnut|chocolate|cocoa|coppery|liver|mahogany|russet|tan|tawny)

BLACK

(?:black|charcoal|night|pepper|raven|sable|soot)

WHITE

(?:ivory|milk|salt|snow|white)

GREY

(?:blue|concrete|grey|pewter|silver|steel)

YELLOW

(?:blonde|butter|cream|gold|honey|wheat|yellow)

ORANGE

(?:carrot|coral|flame|orange|salmon)

RED

(?:blood|cherry|claret|mahogany|red|russet|wine)

GREEN

(?:avocado|green|khaki|spinach|pea|verdigris)

BLUE

(?:aqua|blue|bluish|navy|silver)

PURPLE

(?:berry|lavender|magenta|mauve|plum|purple|velvet|violet)

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Kudoed Authors
Users online (1,339)