average tokens
Browse files
README.md
CHANGED
|
@@ -101,16 +101,50 @@ CDB has quite a diverse distribution of languages, overall there is about 143 la
|
|
| 101 |
## Tokens
|
| 102 |
|
| 103 |
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|-------|------|--------|
|
| 106 |
-
| Dec |
|
| 107 |
| Nov | | |
|
| 108 |
| Oct | | |
|
| 109 |
| **Total** | | |
|
| 110 |
|
|
|
|
| 111 |
|
| 112 |
|
| 113 |
-
|
| 114 |
|
| 115 |
|
| 116 |
|
|
|
|
| 101 |
## Tokens
|
| 102 |
|
| 103 |
|
| 104 |
+
Using [xlm-roberta-base](https://huggingface.co/docs/transformers/model_doc/xlm-roberta) tokenizer to estimate the number of tokens by sampling:
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
### Token-length distribution
|
| 109 |
+
|
| 110 |
+
Computed over a sample of **2,164,574 texts** from CDB-Dec, Oct, Nov.
|
| 111 |
+
|
| 112 |
+
| Statistic | Value |
|
| 113 |
+
|-----------|---------|
|
| 114 |
+
| Min | 3 |
|
| 115 |
+
| Max | 702,667 |
|
| 116 |
+
| Mean | 1,354 |
|
| 117 |
+
|
| 118 |
+
### Truncation rate by sequence length
|
| 119 |
+
|
| 120 |
+
Percentage of texts that would lose tokens at each candidate `seq_len`.
|
| 121 |
+
|
| 122 |
+
| seq_len | Truncation rate | Texts truncated |
|
| 123 |
+
|---------|-----------------|-----------------|
|
| 124 |
+
| 64 | 97.24% | 2,104,865 |
|
| 125 |
+
| 128 | 93.36% | 2,020,754 |
|
| 126 |
+
| 256 | 83.54% | 1,808,331 |
|
| 127 |
+
| 384 | 73.55% | 1,591,996 |
|
| 128 |
+
| 512 | 64.45% | 1,394,971 |
|
| 129 |
+
| 1024 | 37.96% | 821,725 |
|
| 130 |
+
|
| 131 |
+
**Note:** 1,394,971 texts (64.4%) exceed XLM-R's 512 max and will be truncated regardless of the `seq_len` chosen.
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
On average we will have
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
| CDB | Docs | Tokens |
|
| 138 |
|-------|------|--------|
|
| 139 |
+
| Dec | | |
|
| 140 |
| Nov | | |
|
| 141 |
| Oct | | |
|
| 142 |
| **Total** | | |
|
| 143 |
|
| 144 |
+
## Text-Attributed Graph w/ Cleaning
|
| 145 |
|
| 146 |
|
| 147 |
+
Overall across CDB-Dec, CDB-Nov, CDB-Oct
|
| 148 |
|
| 149 |
|
| 150 |
|