{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/504","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/504/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/504/events","html_url":"https://github.com/tensorflow/models/issues/504","id":180935117,"number":504,"title":"##TextSum - Binary data reversed when using data_convert_example.py ","user":{"login":"xtr33me","id":1653419,"avatar_url":"https://avatars.githubusercontent.com/u/1653419?v=3","gravatar_id":"","url":"https://api.github.com/users/xtr33me","html_url":"https://github.com/xtr33me","followers_url":"https://api.github.com/users/xtr33me/followers","following_url":"https://api.github.com/users/xtr33me/following{/other_user}","gists_url":"https://api.github.com/users/xtr33me/gists{/gist_id}","starred_url":"https://api.github.com/users/xtr33me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtr33me/subscriptions","organizations_url":"https://api.github.com/users/xtr33me/orgs","repos_url":"https://api.github.com/users/xtr33me/repos","events_url":"https://api.github.com/users/xtr33me/events{/privacy}","received_events_url":"https://api.github.com/users/xtr33me/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-04T16:00:35Z","updated_at":"2016-10-04T16:00:35Z","closed_at":null,"body":"Has anyone else seen this issue.  I currently am trying to get binary training/test data formatted for the TextSum model using the referenced data_convert_example.py.  I have successfully been able to get my data working with the data_convert_example file from the formatting perspective, however when I run it through the textToBinary, it seems to take the publisher entry and put it at the beginning.  \r\n\r\nSo my starting text file contains an entry like something below:\r\n`article = <d> <p> <s> Heres a collection of some of the best strawberry-eaters in action. </s> </d> </p> \tabstract = <d> <p> <s> Turtles Love Strawberries </s> </d> </p> \tpublisher=BUZZ`\r\n\r\nThen I run the textToBinary on it.  I wont paste that here as I'm sure formatting would be all messed up, but it is reversed that that time.  Then when I run it through the BinaryToText to return it back to the original I have the below result.\r\n`publisher=BUZZ\tarticle = <d> <p> <s> Heres a collection of some of the best strawberry-eaters in action. </s> </d> </p> \tabstract = <d> <p> <s> Turtles Love Strawberries </s> </d> </p> `\r\n\r\nA snipit of what I am using to format the article data to the formatted data is this:\r\n\r\n```\r\nsentences = sent_tokenize((content[1]).encode('ascii', \"ignore\").strip('\\n'))\r\n       for sent in sentences:\r\n           textSumFmt = self.textsumFmt\r\n           finalRes = textSumFmt[\"artPref\"]  + textSumFmt[\"sentPref\"] + sent.replace(\"=\", \"equals\") + textSumFmt[\"sentPost\"] + textSumFmt[\"postVal\"]\r\n       finalRes += ('\\t' + textSumFmt[\"absPref\"] + textSumFmt[\"sentPref\"] + (content[0]).strip('\\n').replace(\"=\", \"equals\") + textSumFmt[\"sentPost\"] + textSumFmt[\"postVal\"]) + '\\t' +'publisher=BUZZ' + os.linesep\r\n```\r\n                                \r\n"}}
{"actor":{"display_login":"xtr33me"}}