Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Commit

Permalink
Readd predict method
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKniephoff committed May 15, 2016
1 parent 098c808 commit 45599d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ def tweet_generator():
*args, **kwargs
)

#def predict(self, tweets, *args, **kwargs):
# return self.network.predict(
# {'input': self.tweets_to_indices(tweets)},
# *args, **kwargs
# )
def predict(self, tweets, *args, **kwargs):
return self.network.predict(
{'input': self.tweets_to_indices(tweets)},
*args, **kwargs
)

def save(self, basedir):
makedirs(basedir, exist_ok=True)
Expand Down

0 comments on commit 45599d4

Please sign in to comment.