-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Create conversation object #11
Conversation
from fuzzywuzzy import process | ||
import os | ||
import csv | ||
from conversation import Conversation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be either chatterbox.conversation
or .conversation
in order for it to work in Python 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
self.TIMESTAMP = self.timestamp() | ||
fmt = "%Y-%m-%d-%H-%M-%S" | ||
|
||
self.TIMESTAMP = str(datetime.datetime.now().strftime(fmt)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't strftime
return a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, it does.
text = re.sub(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', '', text) | ||
try: | ||
text = unicode(text) | ||
except ImportError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A NameError
is actually thrown here, as Python can't find anything named unicode
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I actually have that change made locally. Haven't pushed up the change yet though.
b33c680
to
f35b4ca
Compare
The goal for this pull request is to create an object that can be used to make managing conversations easier and more efficient.
I've also...