Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
updated file format table
  • Loading branch information
Wavesonics authored Dec 5, 2024
1 parent 9e89b35 commit 4deebc3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Fdic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ fdic was 43.65% of the original size

## File Layout

| Field | Description |
|-------|-------------|
| Magic Number | 4 bytes: Fixed value 0x0F0D010C |
| Version | 1 byte: File format version |
| | **--- GZip Compressed Section Begins ---** |
| ngram | vlong: Value of 1 (unigrams) or 2 (bigrams) |
| termCount | vlong: Number of dictionary entries that follow |
| locale | nstring: Language locale of the dictionary |
| | **--- Dictionary Entries Begin ---** |
| | **-- Dictionary Entry --** _(Repeated n times)_ |
| value | 1-10 bytes: Term Frequency (vlong) |
| term | str len+1 bytes: The dictionary term |
| Field | Size | Description |
|-------|------|-------------|
| Magic Number | 4 bytes | Fixed value 0x0F0D010C |
| Version | 1 byte | File format version |
| | **--- GZip Compressed Section Begins ---** | |
| ngram | vlong 1-10 bytes | Value of 1 (unigrams) or 2 (bigrams) |
| termCount | vlong 1-10 bytes | Number of dictionary entries that follow |
| locale | nstring len+1 bytes | Language locale of the dictionary |
| | **--- Dictionary Entries Begin ---** | |
| | **-- Dictionary Entry --** _(Repeated n times)_ | |
| value | vlong 1-10 bytes | Term Frequency (vlong) |
| term | nstring len+1 bytes | The dictionary term |

```mermaid
flowchart TD
Expand Down

0 comments on commit 4deebc3

Please sign in to comment.