Giter Site home page Giter Site logo

Alphabet based training about wenet HOT 11 CLOSED

wenet-e2e avatar wenet-e2e commented on May 12, 2024
Alphabet based training

from wenet.

Comments (11)

robin1001 avatar robin1001 commented on May 12, 2024

token means word piece? alphabet means character?

from wenet.

pKrysenko avatar pKrysenko commented on May 12, 2024

Yes, you understand correct

from wenet.

robin1001 avatar robin1001 commented on May 12, 2024

character can be used as model unit, just change the pipeline to use char. Generally, char has lower accuracy than word piece, so word piece is used as default model unit.

from wenet.

pKrysenko avatar pKrysenko commented on May 12, 2024

With low resource data character based model shows better results then word piece model, based on my small research.
As far as i understand, only i need to change is the format.data file for training. if i use characters to train, i have to change, for instance, "▁CHAPTER ▁ONE" to "CHAPTER ONE" and corresponding token ids and obviously tokens shape and i don't need to decode text_bpe in test stage, am i right?

from wenet.

robin1001 avatar robin1001 commented on May 12, 2024

for "CHAPTER ONE", the format.data should be "C H A P T E R [space] O N E", and the dict should be A-Z plus [space].

from wenet.

robin1001 avatar robin1001 commented on May 12, 2024

for "CHAPTER ONE", the format.data should be "C H A P T E R [space] O N E", and the dict should be A-Z plus [space].

where [space] could be also replaced with a special char "▁" to simplify data processing.

from wenet.

pKrysenko avatar pKrysenko commented on May 12, 2024

For dict is:
blank 0
unk 1
A 2
...
Z 28
sos/eos 29
Am i right?

from wenet.

robin1001 avatar robin1001 commented on May 12, 2024

add one special symbol for space.

from wenet.

pKrysenko avatar pKrysenko commented on May 12, 2024

Okey, many thanks and that's all what i need to change?

from wenet.

robin1001 avatar robin1001 commented on May 12, 2024
  1. the dict
  2. training corpus should be prepared as char, such as "CHAPTER ONE", the format.data should be "C H A P T E R [space] O N E"

from wenet.

pKrysenko avatar pKrysenko commented on May 12, 2024

Many thanks, sorry for dumb questions !

from wenet.

Related Issues (20)

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.