Skip to content

Instantly share code, notes, and snippets.

@dongyuwei
Last active May 15, 2019 05:07
Show Gist options
  • Save dongyuwei/994bcb1a19214acf3a0851e5a9f8d707 to your computer and use it in GitHub Desktop.
Save dongyuwei/994bcb1a19214acf3a0851e5a9f8d707 to your computer and use it in GitHub Desktop.
{
  "keys": [
    "downbeat"
  ],
  "values": [
    {
      "frequency": 236548,
      "ipa": "daʊnˈbit",
      "translation": [
        "n. 下拍(乐队指挥向下的手势);停滞",
        "adj. 忧郁的;悲观的;不强烈的"
      ]
    }
  ]
}
message Word {
  int frequency = 1;
  string ipa = 2;
  string[] translation = 3;
}


message Dict {
    string[] keys = 1;
    Word[] values = 2;
}

ref:

http://evanw.github.io/kiwi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment