Git Product home page Git Product logo

largetextfiles-amazontranslate-amazoncomprehend's Introduction

A sentence tokenizer as input to Amazon Translate and AWS Comprehend - in 5000 byte files image

This is the code for tokenizing the large paragraphs into sentence.This helps for the case when you want to feed that sentence of the 5000 bytes size chunks to the translate or comprehend services. As attached in the code this notbook also helps for having the KMS encrypted data taken from the S3 add the transformation like IO byte based tokenization and creating a chunks of 5000 bytes file using LIFO kind of algorithm.

Create a new repository from this template


This project was bootstrapped with Create React App.

Available Scripts

In the project directory, following scripts are present :

split_df4

This is the function for the splitting the dataframe to the chunks of 5000 bytes this has implmented LIFO by cutting out the last sentence and rechking the size of the data frame size it to the 5000 bytes, it starts with calculating the number of the chunks requried it has been build with tolerance of 500 bytes sentence being the longest sentence possible for chunking.

write_file

This is the function for writing the chunked files to KMS encrypted S3 storage.


License

This library and the stack file are licensed under the MIT-0 License. See the LICENSE file.

largetextfiles-amazontranslate-amazoncomprehend's People

Contributors

amazon-auto avatar veereshshringari-amazon avatar

Watchers

 avatar  avatar

Forkers

arunsathiya

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.