{
  "id": 230095,
  "title": "Computing Levenshtein Distance Easily",
  "url": "/competitions/bms-molecular-translation/discussion/230095",
  "author_name": "",
  "post_date": "2021-04-01T23:23:26.898111Z",
  "votes": 7,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I was looking into implementing Levenshtein distance in TensorFlow. Looks like they already have an off-the-shelf implementation. Check out,</p>\n<p><code>tf.edit_distance(\n    hypothesis, truth, normalize=True, name='edit_distance'\n)\n</code></p>\n<p>Docs: <a href=\"https://www.tensorflow.org/api_docs/python/tf/edit_distance\" target=\"_blank\">https://www.tensorflow.org/api_docs/python/tf/edit_distance</a></p>",
  "messages": [
    {
      "id": "1260193",
      "postDate": "04/01/2021 23:23:26",
      "content": "<p>I was looking into implementing Levenshtein distance in TensorFlow. Looks like they already have an off-the-shelf implementation. Check out,</p>\n<p><code>tf.edit_distance(\n    hypothesis, truth, normalize=True, name='edit_distance'\n)\n</code></p>\n<p>Docs: <a href=\"https://www.tensorflow.org/api_docs/python/tf/edit_distance\" target=\"_blank\">https://www.tensorflow.org/api_docs/python/tf/edit_distance</a></p>",
      "rawMarkdown": "I was looking into implementing Levenshtein distance in TensorFlow. Looks like they already have an off-the-shelf implementation. Check out,\n\n`tf.edit_distance(\n    hypothesis, truth, normalize=True, name='edit_distance'\n)\n`\n\nDocs: https://www.tensorflow.org/api_docs/python/tf/edit_distance",
      "votes": null
    },
    {
      "id": "1260807",
      "postDate": "04/02/2021 12:25:36",
      "content": "<p>This is great. I wanted to include it in tf functions and this will help. Thank you!!</p>",
      "rawMarkdown": "This is great. I wanted to include it in tf functions and this will help. Thank you!!",
      "votes": null
    },
    {
      "id": "1274329",
      "postDate": "04/15/2021 07:41:49",
      "content": "<p>Welcome. :)</p>",
      "rawMarkdown": "Welcome. :)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1260807,
      "author_name": "dschettler8845",
      "author_url": "",
      "post_date": "04/02/2021 12:25:36",
      "content": "<p>This is great. I wanted to include it in tf functions and this will help. Thank you!!</p>",
      "votes": null,
      "replies": [
        {
          "id": 1274329,
          "author_name": "ayuraj",
          "author_url": "",
          "post_date": "04/15/2021 07:41:49",
          "content": "<p>Welcome. :)</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1260193": "I was looking into implementing Levenshtein distance in TensorFlow. Looks like they already have an off-the-shelf implementation. Check out,\n\n`tf.edit_distance(\n    hypothesis, truth, normalize=True, name='edit_distance'\n)\n`\n\nDocs: https://www.tensorflow.org/api_docs/python/tf/edit_distance",
    "1260807": "This is great. I wanted to include it in tf functions and this will help. Thank you!!",
    "1274329": "Welcome. :)"
  },
  "source": "meta"
}