Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Write Document after Replacing Tokens
pofigster
I have a document which is a CSV file, but is very poorly formatted. I'm going to get more files with the same bad formatting, so I'm trying to design a process that will first pre-process the file to correct the issues.
First, I'm using 'Read Document' which just calls the CSV file. Next, 'Replace Tokens' - there are four regex replace statements here. If I issue a breakpoint here, I can see in the document results view that the top half is fixed and the bottom half is the original file. What I want to know how to do is 'Write Document' so the fixed version (with the replaced tokens) is what is written. I will then 'Read CSV' on the written document so it comes in properly formatted.
Find more posts tagged with
AI Studio
Text Mining + NLP
Accepted answers
All comments
raj_ku
Did you find a solution? I am trying to something similar.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups