Git Product home page Git Product logo

georg-jung / fastberttokenizer Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 4.0 19.02 MB

Fast and memory-efficient library for WordPiece tokenization as it is used by BERT.

Home Page: https://www.nuget.org/packages/FastBertTokenizer

License: MIT License

C# 92.14% Dockerfile 0.12% Python 0.82% PowerShell 0.10% Rust 6.82%
ai bert bert-embeddings llm machine-learning natural-language-processing nlp nlp-machine-learning tokenization tokens

fastberttokenizer's People

Contributors

dependabot[bot] avatar georg-jung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fastberttokenizer's Issues

Add Decode support for input_id sequences that don't start at a word prefix

Also, the Decode method currently assumes the first input_id you pass as its argument represents the beginning of a word. If the first passed id represents a word suffix - or, read: some arbitrary position in a list of input_ids, which doesn't happen to represent the start of a word -, it will probably throw a KeyNotFoundException. This probably isn't the best way how this method could work and I'm happy to fix that - if it helps you I could do it quite soon, please let me know.

#38 (comment)

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.