The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Split Text"
Hi guys
I have several Text files with difffrent number of words and i want to split it into Text Files with max 500 words?
How can i segment this Text Files in RapidMiner? I try it with the operator SplitSegmenter but i have no idea how i can set the regular expression.
Can anybode help me?
Regards
Florian
I have several Text files with difffrent number of words and i want to split it into Text Files with max 500 words?
How can i segment this Text Files in RapidMiner? I try it with the operator SplitSegmenter but i have no idea how i can set the regular expression.
Can anybode help me?
Regards
Florian
Tagged:
0
Answers
I'm not really sure what you want...
BUT! You can always try this regex: What it does is search for any number of non whitespace characters, followed by a whitespace character, this pattern repeated 500 times. It works on the site http://www.regexplanet.com/simple/index.html at least (credits to Sebastian for the URL ) !
- R
So i will clarify my problem a little bit...for example:
Text1.txt (Total: 110 words)
Text2.txt (Total: 410 words)
Text3.txt (Tota: 50 words)
I need Text Files in 50 words blocks...the result should be:
Text1.txt -> 3 Segments Files: Text1_Seg1.txt (50 words), Text1_Seg2.txt (50 words), Text1_Seg3.txt (10 words) = Total 110 words
......
can i do this with the operator SplitSegmenter or TextSegmenter (TextMining PlugIn)
Thanks for your answers
did you try the regular expression above? I don't know why it shouldn't work...
Greetings,
Sebastian