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

should we be flagging hash tags also? #4

Open
drevicko opened this issue Jan 30, 2017 · 0 comments
Open

should we be flagging hash tags also? #4

drevicko opened this issue Jan 30, 2017 · 0 comments

Comments

@drevicko
Copy link
Member

the current twitter_crawler_project.py script does not flag when hash tags have been identified as synonyms. From my perspective, knowing if a keyword has been detected as a hash tag vs normal word is important, as they can have quite different meanings.

I'd like to change the code that keeps user mentions (eg: @mrfoo) found in the tweet to also keep hash tags (currently only the word part of the tag is reported).

It'd mean two changes:

  • r"@%s\b" changed to r"[#@]%s\b"
  • "@%s" % keyword changed to "%s%s" % (word_match.group()[0], keyword)

Thoughts?

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