Split text tokens where words have concatenated

mob
mob New Altair Community Member
edited November 5 in Community Q&A
I have text tokens like
stylesexploration
expressionresearch
technologypractice
curriculaimprovisationsurvey

where the punctuation and or spaces are missing in the original text
Besides using a list of replace "expressionresearch" with 2 tokens "expression" &  "research"  is there a smarter way to handle the situation

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    What ever you do, you need to have a list of words, which can be inside. Some kind of dictionary.

    then you might do things using some Generate Attributes functions like contains or find or so..


    ~Martin
  • JEdward
    JEdward New Altair Community Member
    One approach might be to try a word tokenizer for non-English characters such as Jieba (link below).  You can then provide it with your own dictionary of words to split by.  Hope that helps.

    https://github.com/fxsjy/jieba