Code Monkey home page Code Monkey logo

Comments (6)

adeshpande3 avatar adeshpande3 commented on September 13, 2024

Not sure where you're getting stuck, is it a problem with obtaining the data or running createDataset.py, or ??? Maybe just describe what errors you're getting. And also be sure to take a look at the README

from facebook-messenger-bot.

holmstrom avatar holmstrom commented on September 13, 2024

When I am editing the createDataset.py to settings, it first of all give me the error ' File "createDataset.py", line 26
for index,lines in enumerate(allLines):
^
TabError: inconsistent use of tabs and spaces in indentation' at the Googlehangout data.

The only data I want to use is the Facebookdata. But I can not seem to get it running. It gives me an error every time, either I get the error "SyntaxError: Missing parentheses in call to 'print'" or another syntax error.

So I was wondering if you could put up an example, where everything is put up correctly.

I know it should be super simple, but I just can not figure out this step.

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

So the TabError that you're experiencing is more of a Python specific issue. It refers to an error that occurs when your code isn't aligned correctly in your editor. So when you were making changes to createDataset.py, there might've been some changes to that alignment. And the error with the parentheses is just a difference between Python 2 and Python 3, where Python 3 requires parentheses in the print statement while Python 2 does not. If you're getting that error, then just add parentheses around the statements that are causing errors.

The example where everything is put up correctly is the unmodified createDataset.py so not sure what other piece of code you're looking for.

from facebook-messenger-bot.

holmstrom avatar holmstrom commented on September 13, 2024

Aha, that makes sense!

I know, I am asking a lot of stupid questions. I just have hard time of finding out these simple issues.
For example I get this error
"File "", line 119
conversationFile.write(key.strip() + value.strip())
^
TabError: inconsistent use of tabs and spaces in indentation"

Where do I need to insert parentheses in that sentence?

from facebook-messenger-bot.

adeshpande3 avatar adeshpande3 commented on September 13, 2024

Don't worry about it! Everyone starts off asking these types of questions, it's the best way to learn. For that TabError, it's not that you need to insert parentheses (that was for the print statements), but you need to make sure that all your spaces/tabs are of the correct lengths in each code block. This link may give you some useful info.

from facebook-messenger-bot.

holmstrom avatar holmstrom commented on September 13, 2024

Thank you.
I tried to run it by using Anaconda 2.7, and that worked - thanks!

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.