Comments (9)
If I'm not mistaken, I don't think this print statement has a closing parenthesis
from facebook-messenger-bot.
I just noticed that actually, but after doing that I get a the same error here
from facebook-messenger-bot.
I think you need another one after numTotalWords, in order to close the one started before 'Finished'. So, it would be like the following
print ('Finished %d/%d total words' % (i, numTotalWords))
from facebook-messenger-bot.
Fixed all the punctuation, seemed to run but then spat out a unicodedecode error at me. appreciate the pointers by the way, super helpful
from facebook-messenger-bot.
I think changing this line
openedFile = open(filename, 'r')
to
openedFile = open(filename, 'r', encoding="utf-8")
might work. If not, I'd recommend looking through the search results here
from facebook-messenger-bot.
Changing the encoding resolved that error. It'll let me select an input option for making the vectors but then this'll happen. looked on stackoverflow but didn't really find anything useful
from facebook-messenger-bot.
This link will help. Basically, it's saying that if you're using Python3, you should use
allUniqueWords = list(dictionary)
instead of
allUniqueWords = dictionary.keys()
from facebook-messenger-bot.
After making all of the changes above I am still stuck at
Traceback (most recent call last):
File "Word2Vec.py", line 82, in
pickle.dump(wordList, fp)
TypeError: can't pickle dict_keys objects
Python 3.6.4
win 8
from facebook-messenger-bot.
from facebook-messenger-bot.
Related Issues (20)
- TypeError: list indices must be integers or slices, not tuple HOT 1
- Deploy Model on GoogleHangout or local browser.
- Port code to python 3 HOT 9
- Replace legacy embedding_rnn_seq2seq HOT 3
- Support for Telegram messages HOT 2
- error while running seq2seq.py HOT 7
- Empty dictionary on running CreateDataset.py HOT 9
- Linkedin Date time format issue HOT 1
- Claiming to not be able to find numpy module despite it being installed HOT 9
- LICENSE HOT 2
- Discord data parsing error HOT 6
- Discord Data Parse Error #2 HOT 4
- return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 487: character maps to <undefined> HOT 1
- Integration with discord
- whatsapp data example/data format? HOT 1
- Traci Cener - Traci Cener actualizó su foto de portada.
- 27010236httpswols://drive.google.com/file/d/1smS0h1gT_OVtqZV8MldEU-sH8ZnpfavL/view?usp=drivesdk
- Facebook - log in or sign up
- Massanger bot
- Hi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-messenger-bot.