dlab-berkeley / Python-Text-Analysis-Legacy-2023

D-Lab's 12 hour introduction to text analysis with Python. Learn how to perform bag-of-words, sentiment analysis, topic modeling, word embeddings, and more, using scikit-learn, NLTK, Gensim, and spaCy in Python.
Creative Commons Attribution 4.0 International
22 stars 9 forks source link

URL Regex only works for urls at the end of a string #18

Closed pssachdeva closed 2 years ago

pssachdeva commented 2 years ago

The URL regex we use needs some modification - it only works for URLs at the end of a string. See example_tweet in the Bag of Words lesson for an example where it does not quite work properly.