Code Monkey home page Code Monkey logo

Comments (9)

adeshpande3 avatar adeshpande3 commented on September 13, 2024

If I'm not mistaken, I don't think this print statement has a closing parenthesis

image

from facebook-messenger-bot.

valkyrie-system avatar valkyrie-system commented on September 13, 2024

I just noticed that actually, but after doing that I get a the same error here
screenshot 97

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

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.

valkyrie-system avatar valkyrie-system commented on September 13, 2024

Fixed all the punctuation, seemed to run but then spat out a unicodedecode error at me. appreciate the pointers by the way, super helpful
screenshot 98

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

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.

valkyrie-system avatar valkyrie-system commented on September 13, 2024

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
screenshot 99

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

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.

Moriartywasreal avatar Moriartywasreal commented on September 13, 2024

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.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

#23

from facebook-messenger-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.