Hi everybody. How can I use stopword with 2 words per line in stopword dictionary filter

Phanchinhnd
Phanchinhnd New Altair Community Member
edited November 5 in Community Q&A
Hi everybody. How can I use stopword with 2 words per line in stopword dictionary filter

Best Answer

  • kayman
    kayman New Altair Community Member
    Answer ✓
    Not very straightforward to do, but here's an option :

    You could try a plain find and replace logic where your stopword list acts as a dictionary. You would have to convert your text field (doc) to data to do so, but you can revert back to doc afterwards so it's not that much of a burden.

    Keep in mind however that the find and replace is sensitive to order, so if you have this now : 

    biết
    biết bao
    biết bao nhiêu

    you will have to order it as 

    biết bao nhiêu
    biết bao
    biết

    To catch them all as otherwise all biết will be replaced and you keep stuck with bao and bao nhiêu and there will be no match.


Answers

  • kayman
    kayman New Altair Community Member
    Answer ✓
    Not very straightforward to do, but here's an option :

    You could try a plain find and replace logic where your stopword list acts as a dictionary. You would have to convert your text field (doc) to data to do so, but you can revert back to doc afterwards so it's not that much of a burden.

    Keep in mind however that the find and replace is sensitive to order, so if you have this now : 

    biết
    biết bao
    biết bao nhiêu

    you will have to order it as 

    biết bao nhiêu
    biết bao
    biết

    To catch them all as otherwise all biết will be replaced and you keep stuck with bao and bao nhiêu and there will be no match.