xiaoxu193 / PyTeaser

Summarizes news articles
http://xiaoxu193.github.io/PyTeaser/
MIT License
1.17k stars 179 forks source link

Error! #11

Closed ghost closed 10 years ago

ghost commented 10 years ago

I get this error when I run it. Seems like multiple Errors! :-

HERE IS THE ERROR! Traceback (most recent call last): File "C:\Users\mike\Desktop\Python Repos\PyTeaser-master\pyteaser.py", line 259, in main() File "C:\Users\mike\Desktop\Python Repos\PyTeaser-master\pyteaser.py", line 256, in main Summarize('Framework for Partitioning and Execution of Data Stream Applications in Mobile Cloud Computing', 'The contribution of cloud computing and mobile computing technologies lead to the newly emerging mobile cloud com- puting paradigm. Three major approaches have been pro- posed for mobile cloud applications: 1) extending the access to cloud services to mobile devices; 2) enabling mobile de- vices to work collaboratively as cloud resource providers; 3) augmenting the execution of mobile applications on portable devices using cloud resources. In this paper, we focus on the third approach in supporting mobile data stream applica- tions. More specifically, we study how to optimize the com- putation partitioning of a data stream application between mobile and cloud to achieve maximum speed/throughput in processing the streaming data. To the best of our knowledge, it is the first work to study the partitioning problem for mobile data stream applica- tions, where the optimization is placed on achieving high throughput of processing the streaming data rather than minimizing the makespan of executions as in other appli- cations. We first propose a framework to provide runtime support for the dynamic computation partitioning and exe- cution of the application. Different from existing works, the framework not only allows the dynamic partitioning for a single user but also supports the sharing of computation in- stances among multiple users in the cloud to achieve efficient utilization of the underlying cloud resources. Meanwhile, the framework has better scalability because it is designed on the elastic cloud fabrics. Based on the framework, we design a genetic algorithm for optimal computation parti- tion. Both numerical evaluation and real world experiment have been performed, and the results show that the par- titioned application can achieve at least two times better performance in terms of throughput than the application without partitioning.') File "C:\Users\mike\Desktop\Python Repos\PyTeaser-master\pyteaser.py", line 86, in Summarize sentences = split_sentences(text) File "C:\Users\mike\Desktop\Python Repos\PyTeaser-master\pyteaser.py", line 204, in split_sentences import nltk.data # natural language split sentences ImportError: No module named 'nltk'

tgallant commented 10 years ago

From what you posted, it does not look like you have the nltk library installed. Either install the nltk library, or make sure it is installed correctly. If you do not want the nltk dependency, you can try my fork w/o nltk dependency here https://github.com/tgallant/PyTeaser

xiaoxu193 commented 10 years ago

nltk requirement no longer exists. You can clone the newly merged version made by @tgallant