GithubHelp home page GithubHelp logo

surmenok / textsum Goto Github PK

View Code? Open in Web Editor NEW
144.0 12.0 63.0 3 KB

Preparing a dataset for TensorFlow text summarization (TextSum) model.

License: MIT License

Python 100.00%
deep-learning machine-learning text-summarization tensorflow

textsum's Issues

data type

hi, i read your code, and i have a question: how do you arrange your data, and do you have a document of code, what is the data format?

Is the output correct?? using python 3.6.4

` body = 'body'.encode('utf8')

title = 'title'.encode('utf8')

tf_example = example_pb2.Example()

tf_example.features.feature['article'].bytes_list.value.extend([body])

tf_example.features.feature['abstract'].bytes_list.value.extend([title])

tf_example_str = tf_example.SerializeToString()

print(tf_example_str)`

Is the output correct?

b'\n,\n\x13\n\x07article\x12\x08\n\x06\n\x04body\n\x15\n\x08abstract\x12\t\n\x07\n\x05title'
thx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.