Code Monkey home page Code Monkey logo

massivedataanal's People

Contributors

paolomorettin avatar

Watchers

 avatar  avatar  avatar  avatar

massivedataanal's Issues

Serializing preprocess.py

Mi chiedo quale sia lo scopo di serializzare la classe.
Pensavo che tu facessi l'elaborazione e poi serializzassi, in modo da calcolare il tutto solo una volta e limitarti a caricare dal disco le volte successive.
Ho scoperto, invece, che tu serializzi la classe appena creata e elabori solo quando deserializzi. In pratica e' come se salvassi soltanto i parametri con cui costruisci la classe.
Quale e' il senso di questa cosa?

elaborazione single topic?

Al momento elaboriamo tutti i topic contemporaneamente. Credo sarebbe meglio, invece, elaborare i singoli topic separatamente. Trovo che questo sarebbe piu' conveniente per i seguenti motivi:
1 - minor tempo di elaborazione per singolo topic
2 - maggiore pulizia dell'output
3 - mi aspetto che topic diversi diano risultati molto diversi. Servirebbe per poter isolare e analizzare separatamente le diversita' tra i risultati
4 - maggior chiarezza e semplicita' di utilizzo. Supponendo di avere nel file di configurazione il path alle cartelle dei tweet e delle news, basterebbe passare ai programmi in input il nome del topic come unico parametro

./analyzeTweets -t topic

./analyzeNews -t topic

configuration file

I would suggest to create a configuration file in which the user can store the paths to tweets and news, in order to avoid to type them everytime.
I had already used a simple library which allows to use .ini files as configuration.
The library is called "configparser" and is very very easy to used (it reads the ini file and stores the values inside a 2-level dictionary)

Experiencing crash

Traceback (most recent call last):
File "tweetsSummary.py", line 81, in
summarizeTweets(tweetsFolder,infoFolder,pp,outputFilename,kTerms)
File "tweetsSummary.py", line 49, in summarizeTweets
texts.append( pp.processDoc(contr['text']) )
KeyError: 'text'

the keys of contr for different loop iterations are:
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
['text', u'cValue', u'timeEnd', u'cType', u'timeBegin']
[u'cValue', u'timeEnd', u'cType', u'timeBegin']

I tried to investigate this matter, but the contradictionList is such complex!
Isn't there a way to simplify everything?

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.