Skip to main content
Question

match phrase with keyword

  • February 1, 2019
  • 7 replies
  • 13 views

boubcher
Contributor
Forum|alt.badge.img+11

I need to check a long list of keyword (excel1) if they are available in an even bigger list(excel2) of phrase

the end result will be

keyword 1 : phrase 228

keyword 2: phrase 228

keyword 3: phrase 230

.....etc

this case is used to much land use with standard naming

Any idea

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3702 replies
  • February 1, 2019

You can try the DatabaseJoiner, FeatureMerger or FeatureJoiner to achieve this.


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 212 replies
  • February 1, 2019

You can try the DatabaseJoiner, FeatureMerger or FeatureJoiner to achieve this.

Those transformers didn't work for me because I am looking for something to achieve the like or contains function

Ex: keyword: Residential in table one

phrase: residential and commercial in table 2

then the keyword match the phrase

 

 

 

 


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 1, 2019

For fuzzy matching, try the InlineQuerier

select keyword,phrase from "Keyword", "List"
where lower(phrase) like lower('%'||"keyword"||'%')

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • February 2, 2019

Hi @boubcher

I created for example two datasets xls.

  • Table1
  • Table2

Inside on file Table1.xls it was created 3 values from attribute Keyword:

  • Residential
  • Local
  • Soccer

And in the Table2.xls it was created a atttribute called Phrase with 5 values:

  • Residential and commercial
  • I live in this local
  • I love volley
  • We play soccer
  • Sunday is great

 

In Canvas ( FME Desktop Workbench ) I used the custom transformer :FuzzyStringCompareFrom2Datasets

 

The results was just 3 in commum between two Readers:

 

I hope that it'll help you.

 

Attached the Workspacec template file. Workspace_Keywords.fmwt

 

Thanks,

Danilo


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • February 2, 2019

Those transformers didn't work for me because I am looking for something to achieve the like or contains function

Ex: keyword: Residential in table one

phrase: residential and commercial in table 2

then the keyword match the phrase

 

 

 

 

Hi @boubcher

I created for example two datasets xls.

  • Table1
  • Table2

Inside on file Table1.xls it was created 3 values from attribute Keyword:

  • Residential
  • Local
  • Soccer

And in the Table2.xls it was created a atttribute called Phrase with 5 values:

  • Residential and commercial
  • I live in this local
  • I love volley
  • We play soccer
  • Sunday is great

 

In Canvas ( FME Desktop Workbench ) I used the custom transformer :FuzzyStringCompareFrom2Datasets

 

The results was just 3 in commum between two Readers:

 

I hope that it'll help you.

 

Attached the Workspacec template file. Workspace_Keywords.fmwt

 

Thanks,

Danilo


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 212 replies
  • February 3, 2019

Hi @boubcher

I created for example two datasets xls.

  • Table1
  • Table2

Inside on file Table1.xls it was created 3 values from attribute Keyword:

  • Residential
  • Local
  • Soccer

And in the Table2.xls it was created a atttribute called Phrase with 5 values:

  • Residential and commercial
  • I live in this local
  • I love volley
  • We play soccer
  • Sunday is great

 

In Canvas ( FME Desktop Workbench ) I used the custom transformer :FuzzyStringCompareFrom2Datasets

 

The results was just 3 in commum between two Readers:

 

I hope that it'll help you.

 

Attached the Workspacec template file. Workspace_Keywords.fmwt

 

Thanks,

Danilo

@danilo_fme

YES DID WORK FOR ME

THANKS


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • February 3, 2019

@danilo_fme

YES DID WORK FOR ME

THANKS

Hi @boubcher

Excellent. I'm happy to help you.