【问题标题】:Running trend or no trend Twitter rumor project运行趋势或无趋势 Twitter 谣言项目
【发布时间】:2013-05-08 20:46:44
【问题描述】:

我正在学习算法“趋势主题”,我已阅读 Stanislav Nikolov 的文章,趋势或无趋势:一种用于分类时间序列的新型非参数方法。

我尝试在here 下载他的项目。当我尝试运行时,出现错误:

hduser@master:~/rumor$ ./test_detection.py 
Traceback (most recent call last):
  File "./test_detection.py", line 6, in <module>
    ts_viral = rumor.parsing.parse_timeseries('data/' + sys.argv[1])
IndexError: list index out of range

我打算在 Hadoop 集群上运行。我该怎么办?

【问题讨论】:

    标签: algorithm twitter hadoop trending


    【解决方案1】:

    这意味着你的程序需要一些命令行参数。 sys.argv 包含参数列表,由于您没有提供任何参数,因此出现“索引超出范围”错误。仔细阅读手册。

    【讨论】:

      猜你喜欢
      • 2011-03-11
      • 2016-03-29
      • 2016-12-16
      • 2014-09-17
      • 2017-03-11
      • 2014-07-30
      • 2020-02-05
      • 2012-02-26
      • 1970-01-01
      相关资源
      最近更新 更多