【问题标题】:How to show topics of reuters dataset in Keras?如何在 Keras 中显示路透社数据集的主题?
【发布时间】:2017-12-21 15:21:27
【问题描述】:

我在 Keras 中使用路透社数据集。

我想知道这 46 个主题的名称。

如何在 Keras 中显示路透社数据集的主题?

https://keras.io/datasets/#reuters-newswire-topics-classification

【问题讨论】:

    标签: deep-learning keras text-classification


    【解决方案1】:

    Reuters Dataset主题标签与Keras版本主题索引的关联映射为:

    ['cocoa','grain','veg-oil','earn','acq','wheat','copper','housing','money-supply',
     'coffee','sugar','trade','reserves','ship','cotton','carcass','crude','nat-gas',
     'cpi','money-fx','interest','gnp','meal-feed','alum','oilseed','gold','tin',
     'strategic-metal','livestock','retail','ipi','iron-steel','rubber','heat','jobs',
     'lei','bop','zinc','orange','pet-chem','dlr','gas','silver','wpi','hog','lead']
    

    要了解提取上述映射的方法,请关注this thread comment

    【讨论】:

      猜你喜欢
      • 2018-04-02
      • 2019-04-06
      • 1970-01-01
      • 2013-04-02
      • 2011-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-12
      相关资源
      最近更新 更多