User: roger -- 2017-12-10 << 1407 1409 >> |
Hits: 2522 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to replace words to their original form in a passage? |
Input Sample: |
file e_lemma.txt like: have --> has, have, having, had apple --> apple, apples ... source file like: (Study.txt) Any organization needs both kinds of people, though different organizations need them in different proportions. It is your task to find out, during your training period, into which of the two kinds of jobs you fit, and to plan your career accordingly.... |
Output Sample: |
output a lemmatized passage in another txt file (study-lemma.txt) Any organization need both kind of people, though different organization need they in different proportion.It be you task to find out, during you train period, into which of the two kind of job you fit, and to plan you career accordingly.... |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. Load e_lemma.txt: (1) put file e_lemma.txt to d:\test\ and save as ansi type (2) ctrl-h open replace dialog: click 'advance' tab, set 'run following at the beginning' to: (3) click 'replace'. 2. process file (1) ctrl-o open Study.txt (2) ctrl-h open 'replace' dialog * set 'search for pattern' to: * set 'replace with pattern to: * set 'If' to: (3) click 'replace', done (4) ctrl-s save to study-lemma.txt |
Screenshot 1: Replace_Advanced_Window |