language filter issue
winecoding
New Altair Community Member
I have a document that include both chinese and english. Can I filter all those english text and keep chinese text only? Or in the other direction, can I filter all those chinese text and keep english text only?
Tagged:
0
Answers
-
Just saw this one. Yes you can, simply use a regular expression in your filter and search for \p{Han} this only selects Chinese characters.
To get the reverse just invert it.
1 -
Btw, my team has released a RapidMiner extension to perform multilingual text analysis - the Rosette Text Toolkit. We have an "Identify Language" operator that returns the language of every cell in the input attribute (identifies 56 languages, including Chinese). The extension may help in analyzing multiple-language input - and most of our operators support Chinese.
-Lauren
0 -
I have tried using Rosette's Identify Language operator but received "Couldn't retrieve data for input text" error message. Have tried with text produced from RapidMiner's Generate Nominal Example and other datasets but to no avail.
Hope Rosette could fix this soon.
Rumi0