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

make nlp work for individual dictionaries #151

Closed
ClimbsRocks opened this issue Dec 14, 2016 · 1 comment
Closed

make nlp work for individual dictionaries #151

ClimbsRocks opened this issue Dec 14, 2016 · 1 comment

Comments

@ClimbsRocks
Copy link
Owner

right now it only works with dataframes.

we'll probably want to move this whole block into fit:

                    col_names = self.text_columns[key].get_feature_names()

                    # Make weird characters play nice, or just ignore them :)
                    for idx, word in enumerate(col_names):
                        try:
                            col_names[idx] = str(word)
                        except:
                            col_names[idx] = 'non_ascii_word_' + str(idx)

                    col_names = ['nlp_' + key + '_' + str(word) for word in col_names]
@ClimbsRocks
Copy link
Owner Author

done

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

1 participant