【问题标题】:Find the right way to produce a fine找到正确的方法来产生罚款
【发布时间】:2019-10-11 21:20:54
【问题描述】:

我尝试在本地配置this存储库

当我尝试执行这个命令python feature_extraction.py -t 1 [-nlon] -i mairesse_Apache.arff 时,我明白需要一个更精细的命名结果

这是我用于测试的 mailcorpus.json 文件:

[
   {
      "id":12,
      "mailing_list_url":"12",
      "type_of_recipient":"From",
      "email_address":"test@test.org",
      "message_body":"Here is one text to test sentiment and feel happy",
      "is_response_of":"before"
   },
   {
      "id":21,
      "mailing_list_url":"21",
      "type_of_recipient":"From",
      "email_address":"test@gmail.com",
      "message_body":"Here is one text to test sentiment and feel happy and feel fine",
      "is_response_of":"before"
   },
   {
      "id":21,
      "mailing_list_url":"23",
      "type_of_recipient":"From",
      "email_address":"23@gmail.com",
      "message_body":"Not feel so good for this code",
      "is_response_of":"after"
   }
]

存储库中有一个名为骨架的示例,具有此结构

[
    {
        "id_test": "uid",
        "time": "mm:ss",
        "email": "email@ddress\t",
        "extraversion": 1.0,
        "coscientiousness": 2.0,
        "agreeableness": 3.0,
        "openness": 4.0,
        "neuroticism": 5.0
    },
    ...
]

我知道如何接收我的 mailcorpus.json 文件的这个结果文件吗?

【问题讨论】:

  • 欢迎来到 StackOverflow。请按照您创建此帐户时的建议阅读并遵循帮助文档中的发布指南。 Minimal, complete, verifiable example 适用于此。在您发布 MCVE 代码并准确说明问题之前,我们无法有效地帮助您。我们应该能够将您发布的代码粘贴到文本文件中并重现您指定的问题。不接受站外链接;这样的事情是不稳定的。

标签: python json


【解决方案1】:

您链接中提供的存储库似乎不是供公众使用的。您列出的文件示例实际上不是输出,而是输入(存储库中没有用于转储 json 的代码)。我不希望你能够运行代码。

In the data/ folder, you will also find:

the training_data.rda model from the NLoN R package;
the skeleton of the json that will contain the responses from the mini-IPIP test taken by your subjects.

在这种情况下,您可能需要自己管理 mini-IPIP 测试。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2017-07-29
  • 2019-04-15
  • 2015-01-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-10-19
  • 2018-02-04
相关资源
最近更新 更多