Comments (12)
from k2.
Can it be implemented in Python?
from k2.
from k2.
from k2.
from k2.
Can we provide some command line tools similar to lhotse that convert openfst format to k2 format offline so
that we can keep the c++ code simple?
from k2.
from k2.
@danpovey double checking, for WFST
0 1 1 1 0.1
0 2 2 2 0.2
1 2 3 3 0.3
2
We would still create a super final state, because there is no arc entering the original final state with label -1, right?
Regarding the start state, is it required by K2 that there will only be one start state with state 0? If yes we may have to add a super start state as well?
from k2.
OK, we can require that in the text form, the final-state must be listed. However I'm not sure what to do about the empty FSA, i.e. with no states. That is actually supported by the tools as-is, but perhaps we could settle on always having at least 2 states (and just supporting an empty FSA as one not having any arcs). (?). Thinking of the pros and cons of this.
There is only one start state, this is the same as in OpenFST.
from k2.
... one possibility is to say that for empty FSAs, we just have no arcs, and to make it possible to represent the empty FSA in a vector of FSAs (and write to disk) we actually store the FSA on disk as 2 tensors: one being the row_splits of FSAs -> arcs, equivalent to fsa_vec.RowSplits(2)[fsa_vec.RowSplits(1)]
, and the 2nd being the tensor of arcs. And the equivalent in text form (although I dont recommend using text form much) would be to represent the empty FSA as just a blank line, with regular FSAs terminated by a single blank line if we serialize multiple FSAs to a single text string. Again, I'm not sure how much we'll want to serialize vectors of FSAs to text strings, i.e. whether this is needed.
from k2.
from k2.
from k2.
Related Issues (20)
- A warning is always printed when there is an extreme reduction in the encoder output frame rate. HOT 2
- ModuleNotFoundError: No module named '_k2' HOT 2
- Nbest online decoding bug HOT 15
- argmax_internal::PairInputIterator and argmax_internal::PairOutputIterator don't implement the random access iterator concept HOT 6
- ModuleNotFoundError: No module named '_k2' HOT 5
- error: conflicting declaration ‘typedef struct CUevent_st* HOT 7
- nbest C++ api use too much vram HOT 5
- Torchscript export error for torch.finfo function HOT 2
- fail k2.compose(H, LG, inner_labels="tokens") HOT 13
- aux labels id range limit?
- Error during run time in 1st epoch using conformer_ctc2 OTC HOT 1
- I want to install k2 offline , but the log shows that "network is unreachable" HOT 1
- Have problem when installing from source HOT 1
- No module named 'k2.torch_version' HOT 6
- Use k2 to represent regex in decoding
- no text is given HOT 1
- Debug statements HOT 2
- Reinstalling from source in cpu HOT 9
- N
- frame level RNNT-loss HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k2.