meta_config.json 1.6 KB
Newer Older
Z
zhangjinchao01 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
{
  "meta": {
    "movie": {
      "fields": [
        {
          "type": "id", 
          "pos": 0
        }, 
        {
          "regex": {
            "pattern": "^(.*)\\((\\d+)\\)$", 
            "group_id": 1, 
            "strip": true
          }, 
          "type": {
            "seq_type": "sequence", 
            "name": "embedding"
          }, 
          "dict": {
            "type": "char_based"
          }, 
          "name": "title", 
          "pos": 1
        }, 
        {
          "type": "one_hot_dense", 
          "dict": {
            "delimiter": "|", 
            "type": "split"
          }, 
          "name": "genres", 
          "pos": 2
        }
      ], 
      "file": {
        "delimiter": "::", 
        "type": "split", 
        "name": "movies.dat"
      }
    }, 
    "user": {
      "fields": [
        {
          "type": "id", 
          "pos": 0
        }, 
        {
          "type": "embedding", 
          "dict": {
            "type": "char_based"
          }, 
          "name": "gender", 
          "pos": 1
        }, 
        {
          "type": "embedding", 
          "dict": {
            "sort": true, 
            "type": "whole_content"
          }, 
          "name": "age", 
          "pos": 2
        }, 
        {
          "type": "embedding", 
          "dict": {
            "sort": "true", 
            "type": "whole_content"
          }, 
          "name": "occupation", 
          "pos": 3
        }
      ], 
      "file": {
        "delimiter": "::", 
        "type": "split", 
        "name": "users.dat"
      }
    }
  }
}