Giter Site home page Giter Site logo

parnianf / byteperencoding-and-wordpiece-tokenizer-implementation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.26 MB

BPE & WordPiece Tokenizers Implementation, CA1, Natural Language Processing Course (Spring 2022), University of Tehran

HTML 83.66% Jupyter Notebook 16.34%

byteperencoding-and-wordpiece-tokenizer-implementation's Introduction

BytePerEncoding-And-WordPiece-Tokenizer-Implementation

Some of the popular subword-based tokenization algorithms are WordPiece, Byte-Pair Encoding (BPE), Unigram, and SentencePiece. The goal of this project is to get deeper into BPE and WordPiece.

Datasets

http://www.gutenberg.org/cache/epub/16457/pg16457.txt

https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip

Sample.txt

* Make sure you have the Sample.txt file and the wikitext-103-raw folder to run the code.

Step 1

  • Explaning of BPE & WordPiece
  • Comapring BPE & WordPiece
  • Implementing BPE from scratch

Step 2

  • Implementing BPE & WordPiece by Hugging Face
  • Applying these models on Gutenberg book & English Wikipedia & a sample text file given.
  • Explaning & analyzing the differences

Step 3

  • Analyzing the results

Report

Report is available here.

byteperencoding-and-wordpiece-tokenizer-implementation's People

Contributors

parnianf avatar

Watchers

 avatar

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.