Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace words in text with words generated using all_words #227

Open
FinScience opened this issue Feb 28, 2017 · 2 comments
Open

Replace words in text with words generated using all_words #227

FinScience opened this issue Feb 28, 2017 · 2 comments

Comments

@FinScience
Copy link

FinScience commented Feb 28, 2017

Hi,

Being pretty new to qdap, I am not sure whether this functionality is present, but it would be great to have something as mentioned below.

My initial dataset.

ID	Keywords
1	       112 mills, open heart surgery, great, great job
2	       Ausie, open, heart out
3	       opened, heartily, 56mg)_job, orders12
4	       order, macD

On using all_words I end up with the following data.

  WORD     FREQ
 1  great       2
 2  heart       2
 3  open        2
 4  ausie       1
 5  heartily    1
 6  job         1
 7  macd        1
 8  mgjob       1
 9  mills       1
10 opened       1
11 order        1
12 orders       1
13 out          1
14 surgery      1

Is there a way in which the main dataset can be replaced by the exact words that are appearing through all_words?

i.e 112 mills should end up as mills in row 1
56mg)_job should end up as mgjob in row 3

@Dasonk
Copy link

Dasonk commented Feb 28, 2017

What would you want something like "open heart surgery" to be changed to? Or would you want to keep it that way?

@FinScience
Copy link
Author

It would be kept the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants