Training in progress, step 1000
Browse files- .gitattributes +2 -0
- .gitignore +1 -0
- added_tokens.json +109 -0
- config.json +41 -0
- merges.txt +0 -0
- normalizer.json +1742 -0
- preprocessor_config.json +0 -0
- pytorch_model.bin +3 -0
- runs/Dec17_00-49-12_129-213-88-66/1671238160.9553778/events.out.tfevents.1671238160.129-213-88-66.1326738.1 +3 -0
- runs/Dec17_00-49-12_129-213-88-66/events.out.tfevents.1671238160.129-213-88-66.1326738.0 +3 -0
- special_tokens_map.json +133 -0
- src/__pycache__/preprocess.cpython-38.pyc +3 -0
- src/__pycache__/run_speech_recognition_seq2seq_streaming.cpython-38.pyc +3 -0
- src/preprocess.py +32 -0
- src/readme.md +238 -0
- src/requirements.txt +9 -0
- src/run_base.sh +44 -0
- src/run_small.sh +43 -0
- src/run_speech_recognition_seq2seq_streaming.py +774 -0
- src/run_tiny_debug.sh +44 -0
- src/setup_env.sh +25 -0
- tokenizer_config.json +37 -0
- train_20221217-004912.log +132 -0
- train_run_1.log +0 -0
- training_args.bin +3 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -32,3 +32,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
src/__pycache__/preprocess.cpython-38.pyc filter=lfs diff=lfs merge=lfs -text
|
36 |
+
src/__pycache__/run_speech_recognition_seq2seq_streaming.cpython-38.pyc filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
added_tokens.json
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|af|>": 50327,
|
3 |
+
"<|am|>": 50334,
|
4 |
+
"<|ar|>": 50272,
|
5 |
+
"<|as|>": 50350,
|
6 |
+
"<|az|>": 50304,
|
7 |
+
"<|ba|>": 50355,
|
8 |
+
"<|be|>": 50330,
|
9 |
+
"<|bg|>": 50292,
|
10 |
+
"<|bn|>": 50302,
|
11 |
+
"<|bo|>": 50347,
|
12 |
+
"<|br|>": 50309,
|
13 |
+
"<|bs|>": 50315,
|
14 |
+
"<|ca|>": 50270,
|
15 |
+
"<|cs|>": 50283,
|
16 |
+
"<|cy|>": 50297,
|
17 |
+
"<|da|>": 50285,
|
18 |
+
"<|de|>": 50261,
|
19 |
+
"<|el|>": 50281,
|
20 |
+
"<|endoftext|>": 50257,
|
21 |
+
"<|en|>": 50259,
|
22 |
+
"<|es|>": 50262,
|
23 |
+
"<|et|>": 50307,
|
24 |
+
"<|eu|>": 50310,
|
25 |
+
"<|fa|>": 50300,
|
26 |
+
"<|fi|>": 50277,
|
27 |
+
"<|fo|>": 50338,
|
28 |
+
"<|fr|>": 50265,
|
29 |
+
"<|gl|>": 50319,
|
30 |
+
"<|gu|>": 50333,
|
31 |
+
"<|haw|>": 50352,
|
32 |
+
"<|ha|>": 50354,
|
33 |
+
"<|hi|>": 50276,
|
34 |
+
"<|hr|>": 50291,
|
35 |
+
"<|ht|>": 50339,
|
36 |
+
"<|hu|>": 50286,
|
37 |
+
"<|hy|>": 50312,
|
38 |
+
"<|id|>": 50275,
|
39 |
+
"<|is|>": 50311,
|
40 |
+
"<|it|>": 50274,
|
41 |
+
"<|iw|>": 50279,
|
42 |
+
"<|ja|>": 50266,
|
43 |
+
"<|jw|>": 50356,
|
44 |
+
"<|ka|>": 50329,
|
45 |
+
"<|kk|>": 50316,
|
46 |
+
"<|km|>": 50323,
|
47 |
+
"<|kn|>": 50306,
|
48 |
+
"<|ko|>": 50264,
|
49 |
+
"<|la|>": 50294,
|
50 |
+
"<|lb|>": 50345,
|
51 |
+
"<|ln|>": 50353,
|
52 |
+
"<|lo|>": 50336,
|
53 |
+
"<|lt|>": 50293,
|
54 |
+
"<|lv|>": 50301,
|
55 |
+
"<|mg|>": 50349,
|
56 |
+
"<|mi|>": 50295,
|
57 |
+
"<|mk|>": 50308,
|
58 |
+
"<|ml|>": 50296,
|
59 |
+
"<|mn|>": 50314,
|
60 |
+
"<|mr|>": 50320,
|
61 |
+
"<|ms|>": 50282,
|
62 |
+
"<|mt|>": 50343,
|
63 |
+
"<|my|>": 50346,
|
64 |
+
"<|ne|>": 50313,
|
65 |
+
"<|nl|>": 50271,
|
66 |
+
"<|nn|>": 50342,
|
67 |
+
"<|nocaptions|>": 50362,
|
68 |
+
"<|notimestamps|>": 50363,
|
69 |
+
"<|no|>": 50288,
|
70 |
+
"<|oc|>": 50328,
|
71 |
+
"<|pa|>": 50321,
|
72 |
+
"<|pl|>": 50269,
|
73 |
+
"<|ps|>": 50340,
|
74 |
+
"<|pt|>": 50267,
|
75 |
+
"<|ro|>": 50284,
|
76 |
+
"<|ru|>": 50263,
|
77 |
+
"<|sa|>": 50344,
|
78 |
+
"<|sd|>": 50332,
|
79 |
+
"<|si|>": 50322,
|
80 |
+
"<|sk|>": 50298,
|
81 |
+
"<|sl|>": 50305,
|
82 |
+
"<|sn|>": 50324,
|
83 |
+
"<|so|>": 50326,
|
84 |
+
"<|sq|>": 50317,
|
85 |
+
"<|sr|>": 50303,
|
86 |
+
"<|startoflm|>": 50360,
|
87 |
+
"<|startofprev|>": 50361,
|
88 |
+
"<|startoftranscript|>": 50258,
|
89 |
+
"<|su|>": 50357,
|
90 |
+
"<|sv|>": 50273,
|
91 |
+
"<|sw|>": 50318,
|
92 |
+
"<|ta|>": 50287,
|
93 |
+
"<|te|>": 50299,
|
94 |
+
"<|tg|>": 50331,
|
95 |
+
"<|th|>": 50289,
|
96 |
+
"<|tk|>": 50341,
|
97 |
+
"<|tl|>": 50348,
|
98 |
+
"<|transcribe|>": 50359,
|
99 |
+
"<|translate|>": 50358,
|
100 |
+
"<|tr|>": 50268,
|
101 |
+
"<|tt|>": 50351,
|
102 |
+
"<|uk|>": 50280,
|
103 |
+
"<|ur|>": 50290,
|
104 |
+
"<|uz|>": 50337,
|
105 |
+
"<|vi|>": 50278,
|
106 |
+
"<|yi|>": 50335,
|
107 |
+
"<|yo|>": 50325,
|
108 |
+
"<|zh|>": 50260
|
109 |
+
}
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "openai/whisper-base",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"architectures": [
|
6 |
+
"WhisperForConditionalGeneration"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"begin_suppress_tokens": [
|
10 |
+
220,
|
11 |
+
50257
|
12 |
+
],
|
13 |
+
"bos_token_id": 50257,
|
14 |
+
"d_model": 512,
|
15 |
+
"decoder_attention_heads": 8,
|
16 |
+
"decoder_ffn_dim": 2048,
|
17 |
+
"decoder_layerdrop": 0.0,
|
18 |
+
"decoder_layers": 6,
|
19 |
+
"decoder_start_token_id": 50258,
|
20 |
+
"dropout": 0.0,
|
21 |
+
"encoder_attention_heads": 8,
|
22 |
+
"encoder_ffn_dim": 2048,
|
23 |
+
"encoder_layerdrop": 0.0,
|
24 |
+
"encoder_layers": 6,
|
25 |
+
"eos_token_id": 50257,
|
26 |
+
"forced_decoder_ids": null,
|
27 |
+
"init_std": 0.02,
|
28 |
+
"is_encoder_decoder": true,
|
29 |
+
"max_length": 448,
|
30 |
+
"max_source_positions": 1500,
|
31 |
+
"max_target_positions": 448,
|
32 |
+
"model_type": "whisper",
|
33 |
+
"num_hidden_layers": 6,
|
34 |
+
"num_mel_bins": 80,
|
35 |
+
"pad_token_id": 50257,
|
36 |
+
"scale_embedding": false,
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.26.0.dev0",
|
39 |
+
"use_cache": false,
|
40 |
+
"vocab_size": 51865
|
41 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
normalizer.json
ADDED
@@ -0,0 +1,1742 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"accessorise": "accessorize",
|
3 |
+
"accessorised": "accessorized",
|
4 |
+
"accessorises": "accessorizes",
|
5 |
+
"accessorising": "accessorizing",
|
6 |
+
"acclimatisation": "acclimatization",
|
7 |
+
"acclimatise": "acclimatize",
|
8 |
+
"acclimatised": "acclimatized",
|
9 |
+
"acclimatises": "acclimatizes",
|
10 |
+
"acclimatising": "acclimatizing",
|
11 |
+
"accoutrements": "accouterments",
|
12 |
+
"aeon": "eon",
|
13 |
+
"aeons": "eons",
|
14 |
+
"aerogramme": "aerogram",
|
15 |
+
"aerogrammes": "aerograms",
|
16 |
+
"aeroplane": "airplane",
|
17 |
+
"aeroplanes": "airplanes",
|
18 |
+
"aesthete": "esthete",
|
19 |
+
"aesthetes": "esthetes",
|
20 |
+
"aesthetic": "esthetic",
|
21 |
+
"aesthetically": "esthetically",
|
22 |
+
"aesthetics": "esthetics",
|
23 |
+
"aetiology": "etiology",
|
24 |
+
"ageing": "aging",
|
25 |
+
"aggrandisement": "aggrandizement",
|
26 |
+
"agonise": "agonize",
|
27 |
+
"agonised": "agonized",
|
28 |
+
"agonises": "agonizes",
|
29 |
+
"agonising": "agonizing",
|
30 |
+
"agonisingly": "agonizingly",
|
31 |
+
"almanack": "almanac",
|
32 |
+
"almanacks": "almanacs",
|
33 |
+
"aluminium": "aluminum",
|
34 |
+
"amortisable": "amortizable",
|
35 |
+
"amortisation": "amortization",
|
36 |
+
"amortisations": "amortizations",
|
37 |
+
"amortise": "amortize",
|
38 |
+
"amortised": "amortized",
|
39 |
+
"amortises": "amortizes",
|
40 |
+
"amortising": "amortizing",
|
41 |
+
"amphitheatre": "amphitheater",
|
42 |
+
"amphitheatres": "amphitheaters",
|
43 |
+
"anaemia": "anemia",
|
44 |
+
"anaemic": "anemic",
|
45 |
+
"anaesthesia": "anesthesia",
|
46 |
+
"anaesthetic": "anesthetic",
|
47 |
+
"anaesthetics": "anesthetics",
|
48 |
+
"anaesthetise": "anesthetize",
|
49 |
+
"anaesthetised": "anesthetized",
|
50 |
+
"anaesthetises": "anesthetizes",
|
51 |
+
"anaesthetising": "anesthetizing",
|
52 |
+
"anaesthetist": "anesthetist",
|
53 |
+
"anaesthetists": "anesthetists",
|
54 |
+
"anaesthetize": "anesthetize",
|
55 |
+
"anaesthetized": "anesthetized",
|
56 |
+
"anaesthetizes": "anesthetizes",
|
57 |
+
"anaesthetizing": "anesthetizing",
|
58 |
+
"analogue": "analog",
|
59 |
+
"analogues": "analogs",
|
60 |
+
"analyse": "analyze",
|
61 |
+
"analysed": "analyzed",
|
62 |
+
"analyses": "analyzes",
|
63 |
+
"analysing": "analyzing",
|
64 |
+
"anglicise": "anglicize",
|
65 |
+
"anglicised": "anglicized",
|
66 |
+
"anglicises": "anglicizes",
|
67 |
+
"anglicising": "anglicizing",
|
68 |
+
"annualised": "annualized",
|
69 |
+
"antagonise": "antagonize",
|
70 |
+
"antagonised": "antagonized",
|
71 |
+
"antagonises": "antagonizes",
|
72 |
+
"antagonising": "antagonizing",
|
73 |
+
"apologise": "apologize",
|
74 |
+
"apologised": "apologized",
|
75 |
+
"apologises": "apologizes",
|
76 |
+
"apologising": "apologizing",
|
77 |
+
"appal": "appall",
|
78 |
+
"appals": "appalls",
|
79 |
+
"appetiser": "appetizer",
|
80 |
+
"appetisers": "appetizers",
|
81 |
+
"appetising": "appetizing",
|
82 |
+
"appetisingly": "appetizingly",
|
83 |
+
"arbour": "arbor",
|
84 |
+
"arbours": "arbors",
|
85 |
+
"archaeologically": "archeologically",
|
86 |
+
"archaeologist": "archeologist",
|
87 |
+
"archaeologists": "archeologists",
|
88 |
+
"archaeology": "archeology</span>",
|
89 |
+
"archeological": "archaeological",
|
90 |
+
"ardour": "ardor",
|
91 |
+
"armour": "armor",
|
92 |
+
"armoured": "armored",
|
93 |
+
"armourer": "armorer",
|
94 |
+
"armourers": "armorers",
|
95 |
+
"armouries": "armories",
|
96 |
+
"armoury": "armory",
|
97 |
+
"artefact": "artifact",
|
98 |
+
"artefacts": "artifacts",
|
99 |
+
"authorise": "authorize",
|
100 |
+
"authorised": "authorized",
|
101 |
+
"authorises": "authorizes",
|
102 |
+
"authorising": "authorizing",
|
103 |
+
"axe": "ax",
|
104 |
+
"backpedalled": "backpedaled",
|
105 |
+
"backpedalling": "backpedaling",
|
106 |
+
"bannister": "banister",
|
107 |
+
"bannisters": "banisters",
|
108 |
+
"baptise": "baptize",
|
109 |
+
"baptised": "baptized",
|
110 |
+
"baptises": "baptizes",
|
111 |
+
"baptising": "baptizing",
|
112 |
+
"bastardise": "bastardize",
|
113 |
+
"bastardised": "bastardized",
|
114 |
+
"bastardises": "bastardizes",
|
115 |
+
"bastardising": "bastardizing",
|
116 |
+
"battleax": "battleaxe",
|
117 |
+
"baulk": "balk",
|
118 |
+
"baulked": "balked",
|
119 |
+
"baulking": "balking",
|
120 |
+
"baulks": "balks",
|
121 |
+
"bedevilled": "bedeviled",
|
122 |
+
"bedevilling": "bedeviling",
|
123 |
+
"behaviour": "behavior",
|
124 |
+
"behavioural": "behavioral",
|
125 |
+
"behaviourism": "behaviorism",
|
126 |
+
"behaviourist": "behaviorist",
|
127 |
+
"behaviourists": "behaviorists",
|
128 |
+
"behaviours": "behaviors",
|
129 |
+
"behove": "behoove",
|
130 |
+
"behoved": "behooved",
|
131 |
+
"behoves": "behooves",
|
132 |
+
"bejewelled": "bejeweled",
|
133 |
+
"belabour": "belabor",
|
134 |
+
"belaboured": "belabored",
|
135 |
+
"belabouring": "belaboring",
|
136 |
+
"belabours": "belabors",
|
137 |
+
"bevelled": "beveled",
|
138 |
+
"bevvies": "bevies",
|
139 |
+
"bevvy": "bevy",
|
140 |
+
"biassed": "biased",
|
141 |
+
"biassing": "biasing",
|
142 |
+
"bingeing": "binging",
|
143 |
+
"bougainvillaea": "bougainvillea",
|
144 |
+
"bougainvillaeas": "bougainvilleas",
|
145 |
+
"bowdlerise": "bowdlerize",
|
146 |
+
"bowdlerised": "bowdlerized",
|
147 |
+
"bowdlerises": "bowdlerizes",
|
148 |
+
"bowdlerising": "bowdlerizing",
|
149 |
+
"breathalyse": "breathalyze",
|
150 |
+
"breathalysed": "breathalyzed",
|
151 |
+
"breathalyser": "breathalyzer",
|
152 |
+
"breathalysers": "breathalyzers",
|
153 |
+
"breathalyses": "breathalyzes",
|
154 |
+
"breathalysing": "breathalyzing",
|
155 |
+
"brutalise": "brutalize",
|
156 |
+
"brutalised": "brutalized",
|
157 |
+
"brutalises": "brutalizes",
|
158 |
+
"brutalising": "brutalizing",
|
159 |
+
"busses": "buses",
|
160 |
+
"bussing": "busing",
|
161 |
+
"caesarean": "cesarean",
|
162 |
+
"caesareans": "cesareans",
|
163 |
+
"calibre": "caliber",
|
164 |
+
"calibres": "calibers",
|
165 |
+
"calliper": "caliper",
|
166 |
+
"callipers": "calipers",
|
167 |
+
"callisthenics": "calisthenics",
|
168 |
+
"canalise": "canalize",
|
169 |
+
"canalised": "canalized",
|
170 |
+
"canalises": "canalizes",
|
171 |
+
"canalising": "canalizing",
|
172 |
+
"cancelation": "cancellation",
|
173 |
+
"cancelations": "cancellations",
|
174 |
+
"cancelled": "canceled",
|
175 |
+
"cancelling": "canceling",
|
176 |
+
"candour": "candor",
|
177 |
+
"cannibalise": "cannibalize",
|
178 |
+
"cannibalised": "cannibalized",
|
179 |
+
"cannibalises": "cannibalizes",
|
180 |
+
"cannibalising": "cannibalizing",
|
181 |
+
"canonise": "canonize",
|
182 |
+
"canonised": "canonized",
|
183 |
+
"canonises": "canonizes",
|
184 |
+
"canonising": "canonizing",
|
185 |
+
"capitalise": "capitalize",
|
186 |
+
"capitalised": "capitalized",
|
187 |
+
"capitalises": "capitalizes",
|
188 |
+
"capitalising": "capitalizing",
|
189 |
+
"caramelise": "caramelize",
|
190 |
+
"caramelised": "caramelized",
|
191 |
+
"caramelises": "caramelizes",
|
192 |
+
"caramelising": "caramelizing",
|
193 |
+
"carbonise": "carbonize",
|
194 |
+
"carbonised": "carbonized",
|
195 |
+
"carbonises": "carbonizes",
|
196 |
+
"carbonising": "carbonizing",
|
197 |
+
"carolled": "caroled",
|
198 |
+
"carolling": "caroling",
|
199 |
+
"catalogue": "catalog",
|
200 |
+
"catalogued": "cataloged",
|
201 |
+
"catalogues": "catalogs",
|
202 |
+
"cataloguing": "cataloging",
|
203 |
+
"catalyse": "catalyze",
|
204 |
+
"catalysed": "catalyzed",
|
205 |
+
"catalyses": "catalyzes",
|
206 |
+
"catalysing": "catalyzing",
|
207 |
+
"categorise": "categorize",
|
208 |
+
"categorised": "categorized",
|
209 |
+
"categorises": "categorizes",
|
210 |
+
"categorising": "categorizing",
|
211 |
+
"cauterise": "cauterize",
|
212 |
+
"cauterised": "cauterized",
|
213 |
+
"cauterises": "cauterizes",
|
214 |
+
"cauterising": "cauterizing",
|
215 |
+
"cavilled": "caviled",
|
216 |
+
"cavilling": "caviling",
|
217 |
+
"centigramme": "centigram",
|
218 |
+
"centigrammes": "centigrams",
|
219 |
+
"centilitre": "centiliter",
|
220 |
+
"centilitres": "centiliters",
|
221 |
+
"centimetre": "centimeter",
|
222 |
+
"centimetres": "centimeters",
|
223 |
+
"centralise": "centralize",
|
224 |
+
"centralised": "centralized",
|
225 |
+
"centralises": "centralizes",
|
226 |
+
"centralising": "centralizing",
|
227 |
+
"centre": "center",
|
228 |
+
"centred": "centered",
|
229 |
+
"centrefold": "centerfold",
|
230 |
+
"centrefolds": "centerfolds",
|
231 |
+
"centrepiece": "centerpiece",
|
232 |
+
"centrepieces": "centerpieces",
|
233 |
+
"centres": "centers",
|
234 |
+
"channelled": "channeled",
|
235 |
+
"channelling": "channeling",
|
236 |
+
"characterise": "characterize",
|
237 |
+
"characterised": "characterized",
|
238 |
+
"characterises": "characterizes",
|
239 |
+
"characterising": "characterizing",
|
240 |
+
"cheque": "check",
|
241 |
+
"chequebook": "checkbook",
|
242 |
+
"chequebooks": "checkbooks",
|
243 |
+
"chequered": "checkered",
|
244 |
+
"cheques": "checks",
|
245 |
+
"chilli": "chili",
|
246 |
+
"chimaera": "chimera",
|
247 |
+
"chimaeras": "chimeras",
|
248 |
+
"chiselled": "chiseled",
|
249 |
+
"chiselling": "chiseling",
|
250 |
+
"circularise": "circularize",
|
251 |
+
"circularised": "circularized",
|
252 |
+
"circularises": "circularizes",
|
253 |
+
"circularising": "circularizing",
|
254 |
+
"civilise": "civilize",
|
255 |
+
"civilised": "civilized",
|
256 |
+
"civilises": "civilizes",
|
257 |
+
"civilising": "civilizing",
|
258 |
+
"clamour": "clamor",
|
259 |
+
"clamoured": "clamored",
|
260 |
+
"clamouring": "clamoring",
|
261 |
+
"clamours": "clamors",
|
262 |
+
"clangour": "clangor",
|
263 |
+
"clarinettist": "clarinetist",
|
264 |
+
"clarinettists": "clarinetists",
|
265 |
+
"collectivise": "collectivize",
|
266 |
+
"collectivised": "collectivized",
|
267 |
+
"collectivises": "collectivizes",
|
268 |
+
"collectivising": "collectivizing",
|
269 |
+
"colonisation": "colonization",
|
270 |
+
"colonise": "colonize",
|
271 |
+
"colonised": "colonized",
|
272 |
+
"coloniser": "colonizer",
|
273 |
+
"colonisers": "colonizers",
|
274 |
+
"colonises": "colonizes",
|
275 |
+
"colonising": "colonizing",
|
276 |
+
"colour": "color",
|
277 |
+
"colourant": "colorant",
|
278 |
+
"colourants": "colorants",
|
279 |
+
"coloured": "colored",
|
280 |
+
"coloureds": "coloreds",
|
281 |
+
"colourful": "colorful",
|
282 |
+
"colourfully": "colorfully",
|
283 |
+
"colouring": "coloring",
|
284 |
+
"colourize": "colorize",
|
285 |
+
"colourized": "colorized",
|
286 |
+
"colourizes": "colorizes",
|
287 |
+
"colourizing": "colorizing",
|
288 |
+
"colourless": "colorless",
|
289 |
+
"colours": "colors",
|
290 |
+
"commercialise": "commercialize",
|
291 |
+
"commercialised": "commercialized",
|
292 |
+
"commercialises": "commercializes",
|
293 |
+
"commercialising": "commercializing",
|
294 |
+
"compartmentalise": "compartmentalize",
|
295 |
+
"compartmentalised": "compartmentalized",
|
296 |
+
"compartmentalises": "compartmentalizes",
|
297 |
+
"compartmentalising": "compartmentalizing",
|
298 |
+
"computerise": "computerize",
|
299 |
+
"computerised": "computerized",
|
300 |
+
"computerises": "computerizes",
|
301 |
+
"computerising": "computerizing",
|
302 |
+
"conceptualise": "conceptualize",
|
303 |
+
"conceptualised": "conceptualized",
|
304 |
+
"conceptualises": "conceptualizes",
|
305 |
+
"conceptualising": "conceptualizing",
|
306 |
+
"connexion": "connection",
|
307 |
+
"connexions": "connections",
|
308 |
+
"contextualise": "contextualize",
|
309 |
+
"contextualised": "contextualized",
|
310 |
+
"contextualises": "contextualizes",
|
311 |
+
"contextualising": "contextualizing",
|
312 |
+
"cosier": "cozier",
|
313 |
+
"cosies": "cozies",
|
314 |
+
"cosiest": "coziest",
|
315 |
+
"cosily": "cozily",
|
316 |
+
"cosiness": "coziness",
|
317 |
+
"cosy": "cozy",
|
318 |
+
"councillor": "councilor",
|
319 |
+
"councillors": "councilors",
|
320 |
+
"counselled": "counseled",
|
321 |
+
"counselling": "counseling",
|
322 |
+
"counsellor": "counselor",
|
323 |
+
"counsellors": "counselors",
|
324 |
+
"crenelated": "crenellated",
|
325 |
+
"criminalise": "criminalize",
|
326 |
+
"criminalised": "criminalized",
|
327 |
+
"criminalises": "criminalizes",
|
328 |
+
"criminalising": "criminalizing",
|
329 |
+
"criticise": "criticize",
|
330 |
+
"criticised": "criticized",
|
331 |
+
"criticises": "criticizes",
|
332 |
+
"criticising": "criticizing",
|
333 |
+
"crueller": "crueler",
|
334 |
+
"cruellest": "cruelest",
|
335 |
+
"crystallisation": "crystallization",
|
336 |
+
"crystallise": "crystallize",
|
337 |
+
"crystallised": "crystallized",
|
338 |
+
"crystallises": "crystallizes",
|
339 |
+
"crystallising": "crystallizing",
|
340 |
+
"cudgelled": "cudgeled",
|
341 |
+
"cudgelling": "cudgeling",
|
342 |
+
"customise": "customize",
|
343 |
+
"customised": "customized",
|
344 |
+
"customises": "customizes",
|
345 |
+
"customising": "customizing",
|
346 |
+
"cypher": "cipher",
|
347 |
+
"cyphers": "ciphers",
|
348 |
+
"decentralisation": "decentralization",
|
349 |
+
"decentralise": "decentralize",
|
350 |
+
"decentralised": "decentralized",
|
351 |
+
"decentralises": "decentralizes",
|
352 |
+
"decentralising": "decentralizing",
|
353 |
+
"decriminalisation": "decriminalization",
|
354 |
+
"decriminalise": "decriminalize",
|
355 |
+
"decriminalised": "decriminalized",
|
356 |
+
"decriminalises": "decriminalizes",
|
357 |
+
"decriminalising": "decriminalizing",
|
358 |
+
"defence": "defense",
|
359 |
+
"defenceless": "defenseless",
|
360 |
+
"defences": "defenses",
|
361 |
+
"dehumanisation": "dehumanization",
|
362 |
+
"dehumanise": "dehumanize",
|
363 |
+
"dehumanised": "dehumanized",
|
364 |
+
"dehumanises": "dehumanizes",
|
365 |
+
"dehumanising": "dehumanizing",
|
366 |
+
"demeanour": "demeanor",
|
367 |
+
"demilitarisation": "demilitarization",
|
368 |
+
"demilitarise": "demilitarize",
|
369 |
+
"demilitarised": "demilitarized",
|
370 |
+
"demilitarises": "demilitarizes",
|
371 |
+
"demilitarising": "demilitarizing",
|
372 |
+
"demobilisation": "demobilization",
|
373 |
+
"demobilise": "demobilize",
|
374 |
+
"demobilised": "demobilized",
|
375 |
+
"demobilises": "demobilizes",
|
376 |
+
"demobilising": "demobilizing",
|
377 |
+
"democratisation": "democratization",
|
378 |
+
"democratise": "democratize",
|
379 |
+
"democratised": "democratized",
|
380 |
+
"democratises": "democratizes",
|
381 |
+
"democratising": "democratizing",
|
382 |
+
"demonise": "demonize",
|
383 |
+
"demonised": "demonized",
|
384 |
+
"demonises": "demonizes",
|
385 |
+
"demonising": "demonizing",
|
386 |
+
"demoralisation": "demoralization",
|
387 |
+
"demoralise": "demoralize",
|
388 |
+
"demoralised": "demoralized",
|
389 |
+
"demoralises": "demoralizes",
|
390 |
+
"demoralising": "demoralizing",
|
391 |
+
"denationalisation": "denationalization",
|
392 |
+
"denationalise": "denationalize",
|
393 |
+
"denationalised": "denationalized",
|
394 |
+
"denationalises": "denationalizes",
|
395 |
+
"denationalising": "denationalizing",
|
396 |
+
"deodorise": "deodorize",
|
397 |
+
"deodorised": "deodorized",
|
398 |
+
"deodorises": "deodorizes",
|
399 |
+
"deodorising": "deodorizing",
|
400 |
+
"depersonalise": "depersonalize",
|
401 |
+
"depersonalised": "depersonalized",
|
402 |
+
"depersonalises": "depersonalizes",
|
403 |
+
"depersonalising": "depersonalizing",
|
404 |
+
"deputise": "deputize",
|
405 |
+
"deputised": "deputized",
|
406 |
+
"deputises": "deputizes",
|
407 |
+
"deputising": "deputizing",
|
408 |
+
"desensitisation": "desensitization",
|
409 |
+
"desensitise": "desensitize",
|
410 |
+
"desensitised": "desensitized",
|
411 |
+
"desensitises": "desensitizes",
|
412 |
+
"desensitising": "desensitizing",
|
413 |
+
"destabilisation": "destabilization",
|
414 |
+
"destabilise": "destabilize",
|
415 |
+
"destabilised": "destabilized",
|
416 |
+
"destabilises": "destabilizes",
|
417 |
+
"destabilising": "destabilizing",
|
418 |
+
"dialled": "dialed",
|
419 |
+
"dialling": "dialing",
|
420 |
+
"dialogue": "dialog",
|
421 |
+
"dialogues": "dialogs",
|
422 |
+
"diarrhoea": "diarrhea",
|
423 |
+
"digitise": "digitize",
|
424 |
+
"digitised": "digitized",
|
425 |
+
"digitises": "digitizes",
|
426 |
+
"digitising": "digitizing",
|
427 |
+
"disc": "disk",
|
428 |
+
"discolour": "discolor",
|
429 |
+
"discoloured": "discolored",
|
430 |
+
"discolouring": "discoloring",
|
431 |
+
"discolours": "discolors",
|
432 |
+
"discs": "disks",
|
433 |
+
"disembowelled": "disemboweled",
|
434 |
+
"disembowelling": "disemboweling",
|
435 |
+
"disfavour": "disfavor",
|
436 |
+
"dishevelled": "disheveled",
|
437 |
+
"dishonour": "dishonor",
|
438 |
+
"dishonourable": "dishonorable",
|
439 |
+
"dishonourably": "dishonorably",
|
440 |
+
"dishonoured": "dishonored",
|
441 |
+
"dishonouring": "dishonoring",
|
442 |
+
"dishonours": "dishonors",
|
443 |
+
"disorganisation": "disorganization",
|
444 |
+
"disorganised": "disorganized",
|
445 |
+
"distil": "distill",
|
446 |
+
"distils": "distills",
|
447 |
+
"dramatisation": "dramatization",
|
448 |
+
"dramatisations": "dramatizations",
|
449 |
+
"dramatise": "dramatize",
|
450 |
+
"dramatised": "dramatized",
|
451 |
+
"dramatises": "dramatizes",
|
452 |
+
"dramatising": "dramatizing",
|
453 |
+
"draught": "draft",
|
454 |
+
"draughtboard": "draftboard",
|
455 |
+
"draughtboards": "draftboards",
|
456 |
+
"draughtier": "draftier",
|
457 |
+
"draughtiest": "draftiest",
|
458 |
+
"draughts": "drafts",
|
459 |
+
"draughtsman": "draftsman",
|
460 |
+
"draughtsmanship": "draftsmanship",
|
461 |
+
"draughtsmen": "draftsmen",
|
462 |
+
"draughtswoman": "draftswoman",
|
463 |
+
"draughtswomen": "draftswomen",
|
464 |
+
"draughty": "drafty",
|
465 |
+
"drivelled": "driveled",
|
466 |
+
"drivelling": "driveling",
|
467 |
+
"duelled": "dueled",
|
468 |
+
"duelling": "dueling",
|
469 |
+
"economise": "economize",
|
470 |
+
"economised": "economized",
|
471 |
+
"economises": "economizes",
|
472 |
+
"economising": "economizing",
|
473 |
+
"editorialise": "editorialize",
|
474 |
+
"editorialised": "editorialized",
|
475 |
+
"editorialises": "editorializes",
|
476 |
+
"editorialising": "editorializing",
|
477 |
+
"edoema": "edema",
|
478 |
+
"empathise": "empathize",
|
479 |
+
"empathised": "empathized",
|
480 |
+
"empathises": "empathizes",
|
481 |
+
"empathising": "empathizing",
|
482 |
+
"emphasise": "emphasize",
|
483 |
+
"emphasised": "emphasized",
|
484 |
+
"emphasises": "emphasizes",
|
485 |
+
"emphasising": "emphasizing",
|
486 |
+
"enamelled": "enameled",
|
487 |
+
"enamelling": "enameling",
|
488 |
+
"enamoured": "enamored",
|
489 |
+
"encyclopaedia": "encyclopedia",
|
490 |
+
"encyclopaedias": "encyclopedias",
|
491 |
+
"encyclopaedic": "encyclopedic",
|
492 |
+
"endeavour": "endeavor",
|
493 |
+
"endeavoured": "endeavored",
|
494 |
+
"endeavouring": "endeavoring",
|
495 |
+
"endeavours": "endeavors",
|
496 |
+
"energise": "energize",
|
497 |
+
"energised": "energized",
|
498 |
+
"energises": "energizes",
|
499 |
+
"energising": "energizing",
|
500 |
+
"enrol": "enroll",
|
501 |
+
"enrols": "enrolls",
|
502 |
+
"enthral": "enthrall",
|
503 |
+
"enthrals": "enthralls",
|
504 |
+
"epaulette": "epaulet",
|
505 |
+
"epaulettes": "epaulets",
|
506 |
+
"epicentre": "epicenter",
|
507 |
+
"epicentres": "epicenters",
|
508 |
+
"epilogue": "epilog",
|
509 |
+
"epilogues": "epilogs",
|
510 |
+
"epitomise": "epitomize",
|
511 |
+
"epitomised": "epitomized",
|
512 |
+
"epitomises": "epitomizes",
|
513 |
+
"epitomising": "epitomizing",
|
514 |
+
"equalisation": "equalization",
|
515 |
+
"equalise": "equalize",
|
516 |
+
"equalised": "equalized",
|
517 |
+
"equaliser": "equalizer",
|
518 |
+
"equalisers": "equalizers",
|
519 |
+
"equalises": "equalizes",
|
520 |
+
"equalising": "equalizing",
|
521 |
+
"eulogise": "eulogize",
|
522 |
+
"eulogised": "eulogized",
|
523 |
+
"eulogises": "eulogizes",
|
524 |
+
"eulogising": "eulogizing",
|
525 |
+
"evangelise": "evangelize",
|
526 |
+
"evangelised": "evangelized",
|
527 |
+
"evangelises": "evangelizes",
|
528 |
+
"evangelising": "evangelizing",
|
529 |
+
"exorcise": "exorcize",
|
530 |
+
"exorcised": "exorcized",
|
531 |
+
"exorcises": "exorcizes",
|
532 |
+
"exorcising": "exorcizing",
|
533 |
+
"extemporisation": "extemporization",
|
534 |
+
"extemporise": "extemporize",
|
535 |
+
"extemporised": "extemporized",
|
536 |
+
"extemporises": "extemporizes",
|
537 |
+
"extemporising": "extemporizing",
|
538 |
+
"externalisation": "externalization",
|
539 |
+
"externalisations": "externalizations",
|
540 |
+
"externalise": "externalize",
|
541 |
+
"externalised": "externalized",
|
542 |
+
"externalises": "externalizes",
|
543 |
+
"externalising": "externalizing",
|
544 |
+
"factorise": "factorize",
|
545 |
+
"factorised": "factorized",
|
546 |
+
"factorises": "factorizes",
|
547 |
+
"factorising": "factorizing",
|
548 |
+
"faecal": "fecal",
|
549 |
+
"faeces": "feces",
|
550 |
+
"familiarisation": "familiarization",
|
551 |
+
"familiarise": "familiarize",
|
552 |
+
"familiarised": "familiarized",
|
553 |
+
"familiarises": "familiarizes",
|
554 |
+
"familiarising": "familiarizing",
|
555 |
+
"fantasise": "fantasize",
|
556 |
+
"fantasised": "fantasized",
|
557 |
+
"fantasises": "fantasizes",
|
558 |
+
"fantasising": "fantasizing",
|
559 |
+
"favour": "favor",
|
560 |
+
"favourable": "favorable",
|
561 |
+
"favourably": "favorably",
|
562 |
+
"favoured": "favored",
|
563 |
+
"favouring": "favoring",
|
564 |
+
"favourite": "favorite",
|
565 |
+
"favourites": "favorites",
|
566 |
+
"favouritism": "favoritism",
|
567 |
+
"favours": "favors",
|
568 |
+
"feminise": "feminize",
|
569 |
+
"feminised": "feminized",
|
570 |
+
"feminises": "feminizes",
|
571 |
+
"feminising": "feminizing",
|
572 |
+
"fertilisation": "fertilization",
|
573 |
+
"fertilise": "fertilize",
|
574 |
+
"fertilised": "fertilized",
|
575 |
+
"fertiliser": "fertilizer",
|
576 |
+
"fertilisers": "fertilizers",
|
577 |
+
"fertilises": "fertilizes",
|
578 |
+
"fertilising": "fertilizing",
|
579 |
+
"fervour": "fervor",
|
580 |
+
"fibre": "fiber",
|
581 |
+
"fibreglass": "fiberglass",
|
582 |
+
"fibres": "fibers",
|
583 |
+
"fictionalisation": "fictionalization",
|
584 |
+
"fictionalisations": "fictionalizations",
|
585 |
+
"fictionalise": "fictionalize",
|
586 |
+
"fictionalised": "fictionalized",
|
587 |
+
"fictionalises": "fictionalizes",
|
588 |
+
"fictionalising": "fictionalizing",
|
589 |
+
"fillet": "filet",
|
590 |
+
"filleted": "fileted",
|
591 |
+
"filleting": "fileting",
|
592 |
+
"fillets": "filets",
|
593 |
+
"finalisation": "finalization",
|
594 |
+
"finalise": "finalize",
|
595 |
+
"finalised": "finalized",
|
596 |
+
"finalises": "finalizes",
|
597 |
+
"finalising": "finalizing",
|
598 |
+
"flautist": "flutist",
|
599 |
+
"flautists": "flutists",
|
600 |
+
"flavour": "flavor",
|
601 |
+
"flavoured": "flavored",
|
602 |
+
"flavouring": "flavoring",
|
603 |
+
"flavourings": "flavorings",
|
604 |
+
"flavourless": "flavorless",
|
605 |
+
"flavours": "flavors",
|
606 |
+
"flavoursome": "flavorsome",
|
607 |
+
"flyer / flier": "flier / flyer",
|
608 |
+
"foetal": "fetal",
|
609 |
+
"foetid": "fetid",
|
610 |
+
"foetus": "fetus",
|
611 |
+
"foetuses": "fetuses",
|
612 |
+
"formalisation": "formalization",
|
613 |
+
"formalise": "formalize",
|
614 |
+
"formalised": "formalized",
|
615 |
+
"formalises": "formalizes",
|
616 |
+
"formalising": "formalizing",
|
617 |
+
"fossilisation": "fossilization",
|
618 |
+
"fossilise": "fossilize",
|
619 |
+
"fossilised": "fossilized",
|
620 |
+
"fossilises": "fossilizes",
|
621 |
+
"fossilising": "fossilizing",
|
622 |
+
"fraternisation": "fraternization",
|
623 |
+
"fraternise": "fraternize",
|
624 |
+
"fraternised": "fraternized",
|
625 |
+
"fraternises": "fraternizes",
|
626 |
+
"fraternising": "fraternizing",
|
627 |
+
"fulfil": "fulfill",
|
628 |
+
"fulfilment": "fulfillment",
|
629 |
+
"fulfils": "fulfills",
|
630 |
+
"funnelled": "funneled",
|
631 |
+
"funnelling": "funneling",
|
632 |
+
"gage": "gauge",
|
633 |
+
"gaged": "gauged",
|
634 |
+
"gages": "gauges",
|
635 |
+
"gaging": "gauging",
|
636 |
+
"galvanise": "galvanize",
|
637 |
+
"galvanised": "galvanized",
|
638 |
+
"galvanises": "galvanizes",
|
639 |
+
"galvanising": "galvanizing",
|
640 |
+
"gambolled": "gamboled",
|
641 |
+
"gambolling": "gamboling",
|
642 |
+
"gaol": "jail",
|
643 |
+
"gaolbird": "jailbird",
|
644 |
+
"gaolbirds": "jailbirds",
|
645 |
+
"gaolbreak": "jailbreak",
|
646 |
+
"gaolbreaks": "jailbreaks",
|
647 |
+
"gaoled": "jailed",
|
648 |
+
"gaoler": "jailer",
|
649 |
+
"gaolers": "jailers",
|
650 |
+
"gaoling": "jailing",
|
651 |
+
"gaols": "jails",
|
652 |
+
"gasses": "gases",
|
653 |
+
"generalisation": "generalization",
|
654 |
+
"generalisations": "generalizations",
|
655 |
+
"generalise": "generalize",
|
656 |
+
"generalised": "generalized",
|
657 |
+
"generalises": "generalizes",
|
658 |
+
"generalising": "generalizing",
|
659 |
+
"ghettoise": "ghettoize",
|
660 |
+
"ghettoised": "ghettoized",
|
661 |
+
"ghettoises": "ghettoizes",
|
662 |
+
"ghettoising": "ghettoizing",
|
663 |
+
"gipsies": "gypsies",
|
664 |
+
"glamor": "glamour",
|
665 |
+
"glamorise": "glamorize",
|
666 |
+
"glamorised": "glamorized",
|
667 |
+
"glamorises": "glamorizes",
|
668 |
+
"glamorising": "glamorizing",
|
669 |
+
"globalisation": "globalization",
|
670 |
+
"globalise": "globalize",
|
671 |
+
"globalised": "globalized",
|
672 |
+
"globalises": "globalizes",
|
673 |
+
"globalising": "globalizing",
|
674 |
+
"glueing": "gluing",
|
675 |
+
"goitre": "goiter",
|
676 |
+
"goitres": "goiters",
|
677 |
+
"gonorrhoea": "gonorrhea",
|
678 |
+
"gramme": "gram",
|
679 |
+
"grammes": "grams",
|
680 |
+
"gravelled": "graveled",
|
681 |
+
"grey": "gray",
|
682 |
+
"greyed": "grayed",
|
683 |
+
"greying": "graying",
|
684 |
+
"greyish": "grayish",
|
685 |
+
"greyness": "grayness",
|
686 |
+
"greys": "grays",
|
687 |
+
"grovelled": "groveled",
|
688 |
+
"grovelling": "groveling",
|
689 |
+
"groyne": "groin",
|
690 |
+
"groynes": "groins",
|
691 |
+
"gruelling": "grueling",
|
692 |
+
"gruellingly": "gruelingly",
|
693 |
+
"gryphon": "griffin",
|
694 |
+
"gryphons": "griffins",
|
695 |
+
"gynaecological": "gynecological",
|
696 |
+
"gynaecologist": "gynecologist",
|
697 |
+
"gynaecologists": "gynecologists",
|
698 |
+
"gynaecology": "gynecology",
|
699 |
+
"haematological": "hematological",
|
700 |
+
"haematologist": "hematologist",
|
701 |
+
"haematologists": "hematologists",
|
702 |
+
"haematology": "hematology",
|
703 |
+
"haemoglobin": "hemoglobin",
|
704 |
+
"haemophilia": "hemophilia",
|
705 |
+
"haemophiliac": "hemophiliac",
|
706 |
+
"haemophiliacs": "hemophiliacs",
|
707 |
+
"haemorrhage": "hemorrhage",
|
708 |
+
"haemorrhaged": "hemorrhaged",
|
709 |
+
"haemorrhages": "hemorrhages",
|
710 |
+
"haemorrhaging": "hemorrhaging",
|
711 |
+
"haemorrhoids": "hemorrhoids",
|
712 |
+
"harbour": "harbor",
|
713 |
+
"harboured": "harbored",
|
714 |
+
"harbouring": "harboring",
|
715 |
+
"harbours": "harbors",
|
716 |
+
"harmonisation": "harmonization",
|
717 |
+
"harmonise": "harmonize",
|
718 |
+
"harmonised": "harmonized",
|
719 |
+
"harmonises": "harmonizes",
|
720 |
+
"harmonising": "harmonizing",
|
721 |
+
"homoeopath": "homeopath",
|
722 |
+
"homoeopathic": "homeopathic",
|
723 |
+
"homoeopaths": "homeopaths",
|
724 |
+
"homoeopathy": "homeopathy",
|
725 |
+
"homogenise": "homogenize",
|
726 |
+
"homogenised": "homogenized",
|
727 |
+
"homogenises": "homogenizes",
|
728 |
+
"homogenising": "homogenizing",
|
729 |
+
"honour": "honor",
|
730 |
+
"honourable": "honorable",
|
731 |
+
"honourably": "honorably",
|
732 |
+
"honoured": "honored",
|
733 |
+
"honouring": "honoring",
|
734 |
+
"honours": "honors",
|
735 |
+
"hospitalisation": "hospitalization",
|
736 |
+
"hospitalise": "hospitalize",
|
737 |
+
"hospitalised": "hospitalized",
|
738 |
+
"hospitalises": "hospitalizes",
|
739 |
+
"hospitalising": "hospitalizing",
|
740 |
+
"humanise": "humanize",
|
741 |
+
"humanised": "humanized",
|
742 |
+
"humanises": "humanizes",
|
743 |
+
"humanising": "humanizing",
|
744 |
+
"humour": "humor",
|
745 |
+
"humoured": "humored",
|
746 |
+
"humouring": "humoring",
|
747 |
+
"humourless": "humorless",
|
748 |
+
"humours": "humors",
|
749 |
+
"hybridise": "hybridize",
|
750 |
+
"hybridised": "hybridized",
|
751 |
+
"hybridises": "hybridizes",
|
752 |
+
"hybridising": "hybridizing",
|
753 |
+
"hypnotise": "hypnotize",
|
754 |
+
"hypnotised": "hypnotized",
|
755 |
+
"hypnotises": "hypnotizes",
|
756 |
+
"hypnotising": "hypnotizing",
|
757 |
+
"hypothesise": "hypothesize",
|
758 |
+
"hypothesised": "hypothesized",
|
759 |
+
"hypothesises": "hypothesizes",
|
760 |
+
"hypothesising": "hypothesizing",
|
761 |
+
"idealisation": "idealization",
|
762 |
+
"idealise": "idealize",
|
763 |
+
"idealised": "idealized",
|
764 |
+
"idealises": "idealizes",
|
765 |
+
"idealising": "idealizing",
|
766 |
+
"idolise": "idolize",
|
767 |
+
"idolised": "idolized",
|
768 |
+
"idolises": "idolizes",
|
769 |
+
"idolising": "idolizing",
|
770 |
+
"immobilisation": "immobilization",
|
771 |
+
"immobilise": "immobilize",
|
772 |
+
"immobilised": "immobilized",
|
773 |
+
"immobiliser": "immobilizer",
|
774 |
+
"immobilisers": "immobilizers",
|
775 |
+
"immobilises": "immobilizes",
|
776 |
+
"immobilising": "immobilizing",
|
777 |
+
"immortalise": "immortalize",
|
778 |
+
"immortalised": "immortalized",
|
779 |
+
"immortalises": "immortalizes",
|
780 |
+
"immortalising": "immortalizing",
|
781 |
+
"immunisation": "immunization",
|
782 |
+
"immunise": "immunize",
|
783 |
+
"immunised": "immunized",
|
784 |
+
"immunises": "immunizes",
|
785 |
+
"immunising": "immunizing",
|
786 |
+
"impanelled": "impaneled",
|
787 |
+
"impanelling": "impaneling",
|
788 |
+
"imperilled": "imperiled",
|
789 |
+
"imperilling": "imperiling",
|
790 |
+
"individualise": "individualize",
|
791 |
+
"individualised": "individualized",
|
792 |
+
"individualises": "individualizes",
|
793 |
+
"individualising": "individualizing",
|
794 |
+
"industrialise": "industrialize",
|
795 |
+
"industrialised": "industrialized",
|
796 |
+
"industrialises": "industrializes",
|
797 |
+
"industrialising": "industrializing",
|
798 |
+
"inflexion": "inflection",
|
799 |
+
"inflexions": "inflections",
|
800 |
+
"initialise": "initialize",
|
801 |
+
"initialised": "initialized",
|
802 |
+
"initialises": "initializes",
|
803 |
+
"initialising": "initializing",
|
804 |
+
"initialled": "initialed",
|
805 |
+
"initialling": "initialing",
|
806 |
+
"instal": "install",
|
807 |
+
"instalment": "installment",
|
808 |
+
"instalments": "installments",
|
809 |
+
"instals": "installs",
|
810 |
+
"instil": "instill",
|
811 |
+
"instils": "instills",
|
812 |
+
"institutionalisation": "institutionalization",
|
813 |
+
"institutionalise": "institutionalize",
|
814 |
+
"institutionalised": "institutionalized",
|
815 |
+
"institutionalises": "institutionalizes",
|
816 |
+
"institutionalising": "institutionalizing",
|
817 |
+
"intellectualise": "intellectualize",
|
818 |
+
"intellectualised": "intellectualized",
|
819 |
+
"intellectualises": "intellectualizes",
|
820 |
+
"intellectualising": "intellectualizing",
|
821 |
+
"internalisation": "internalization",
|
822 |
+
"internalise": "internalize",
|
823 |
+
"internalised": "internalized",
|
824 |
+
"internalises": "internalizes",
|
825 |
+
"internalising": "internalizing",
|
826 |
+
"internationalisation": "internationalization",
|
827 |
+
"internationalise": "internationalize",
|
828 |
+
"internationalised": "internationalized",
|
829 |
+
"internationalises": "internationalizes",
|
830 |
+
"internationalising": "internationalizing",
|
831 |
+
"ionisation": "ionization",
|
832 |
+
"ionise": "ionize",
|
833 |
+
"ionised": "ionized",
|
834 |
+
"ioniser": "ionizer",
|
835 |
+
"ionisers": "ionizers",
|
836 |
+
"ionises": "ionizes",
|
837 |
+
"ionising": "ionizing",
|
838 |
+
"italicise": "italicize",
|
839 |
+
"italicised": "italicized",
|
840 |
+
"italicises": "italicizes",
|
841 |
+
"italicising": "italicizing",
|
842 |
+
"itemise": "itemize",
|
843 |
+
"itemised": "itemized",
|
844 |
+
"itemises": "itemizes",
|
845 |
+
"itemising": "itemizing",
|
846 |
+
"jeopardise": "jeopardize",
|
847 |
+
"jeopardised": "jeopardized",
|
848 |
+
"jeopardises": "jeopardizes",
|
849 |
+
"jeopardising": "jeopardizing",
|
850 |
+
"jewelled": "jeweled",
|
851 |
+
"jeweller": "jeweler",
|
852 |
+
"jewellers": "jewelers",
|
853 |
+
"jewellery": "jewelry",
|
854 |
+
"judgement": "judgment",
|
855 |
+
"kilogramme": "kilogram",
|
856 |
+
"kilogrammes": "kilograms",
|
857 |
+
"kilometre": "kilometer",
|
858 |
+
"kilometres": "kilometers",
|
859 |
+
"labelled": "labeled",
|
860 |
+
"labelling": "labeling",
|
861 |
+
"labour": "labor",
|
862 |
+
"laboured": "labored",
|
863 |
+
"labourer": "laborer",
|
864 |
+
"labourers": "laborers",
|
865 |
+
"labouring": "laboring",
|
866 |
+
"labours": "labors",
|
867 |
+
"lacklustre": "lackluster",
|
868 |
+
"legalisation": "legalization",
|
869 |
+
"legalise": "legalize",
|
870 |
+
"legalised": "legalized",
|
871 |
+
"legalises": "legalizes",
|
872 |
+
"legalising": "legalizing",
|
873 |
+
"legitimise": "legitimize",
|
874 |
+
"legitimised": "legitimized",
|
875 |
+
"legitimises": "legitimizes",
|
876 |
+
"legitimising": "legitimizing",
|
877 |
+
"leukaemia": "leukemia",
|
878 |
+
"levelled": "leveled",
|
879 |
+
"leveller": "leveler",
|
880 |
+
"levellers": "levelers",
|
881 |
+
"levelling": "leveling",
|
882 |
+
"libelled": "libeled",
|
883 |
+
"libelling": "libeling",
|
884 |
+
"libellous": "libelous",
|
885 |
+
"liberalisation": "liberalization",
|
886 |
+
"liberalise": "liberalize",
|
887 |
+
"liberalised": "liberalized",
|
888 |
+
"liberalises": "liberalizes",
|
889 |
+
"liberalising": "liberalizing",
|
890 |
+
"licence": "license",
|
891 |
+
"licenced": "licensed",
|
892 |
+
"licences": "licenses",
|
893 |
+
"licencing": "licensing",
|
894 |
+
"likeable": "likable",
|
895 |
+
"lionisation": "lionization",
|
896 |
+
"lionise": "lionize",
|
897 |
+
"lionised": "lionized",
|
898 |
+
"lionises": "lionizes",
|
899 |
+
"lionising": "lionizing",
|
900 |
+
"liquidise": "liquidize",
|
901 |
+
"liquidised": "liquidized",
|
902 |
+
"liquidiser": "liquidizer",
|
903 |
+
"liquidisers": "liquidizers",
|
904 |
+
"liquidises": "liquidizes",
|
905 |
+
"liquidising": "liquidizing",
|
906 |
+
"litre": "liter",
|
907 |
+
"litres": "liters",
|
908 |
+
"localise": "localize",
|
909 |
+
"localised": "localized",
|
910 |
+
"localises": "localizes",
|
911 |
+
"localising": "localizing",
|
912 |
+
"louvre": "louver",
|
913 |
+
"louvred": "louvered",
|
914 |
+
"louvres": "louvers",
|
915 |
+
"lustre": "luster",
|
916 |
+
"magnetise": "magnetize",
|
917 |
+
"magnetised": "magnetized",
|
918 |
+
"magnetises": "magnetizes",
|
919 |
+
"magnetising": "magnetizing",
|
920 |
+
"manoeuvrability": "maneuverability",
|
921 |
+
"manoeuvrable": "maneuverable",
|
922 |
+
"manoeuvre": "maneuver",
|
923 |
+
"manoeuvred": "maneuvered",
|
924 |
+
"manoeuvres": "maneuvers",
|
925 |
+
"manoeuvring": "maneuvering",
|
926 |
+
"manoeuvrings": "maneuverings",
|
927 |
+
"marginalisation": "marginalization",
|
928 |
+
"marginalise": "marginalize",
|
929 |
+
"marginalised": "marginalized",
|
930 |
+
"marginalises": "marginalizes",
|
931 |
+
"marginalising": "marginalizing",
|
932 |
+
"marshalled": "marshaled",
|
933 |
+
"marshalling": "marshaling",
|
934 |
+
"marvelled": "marveled",
|
935 |
+
"marvelling": "marveling",
|
936 |
+
"marvellous": "marvelous",
|
937 |
+
"marvellously": "marvelously",
|
938 |
+
"materialisation": "materialization",
|
939 |
+
"materialise": "materialize",
|
940 |
+
"materialised": "materialized",
|
941 |
+
"materialises": "materializes",
|
942 |
+
"materialising": "materializing",
|
943 |
+
"maximisation": "maximization",
|
944 |
+
"maximise": "maximize",
|
945 |
+
"maximised": "maximized",
|
946 |
+
"maximises": "maximizes",
|
947 |
+
"maximising": "maximizing",
|
948 |
+
"meagre": "meager",
|
949 |
+
"mechanisation": "mechanization",
|
950 |
+
"mechanise": "mechanize",
|
951 |
+
"mechanised": "mechanized",
|
952 |
+
"mechanises": "mechanizes",
|
953 |
+
"mechanising": "mechanizing",
|
954 |
+
"mediaeval": "medieval",
|
955 |
+
"memorialise": "memorialize",
|
956 |
+
"memorialised": "memorialized",
|
957 |
+
"memorialises": "memorializes",
|
958 |
+
"memorialising": "memorializing",
|
959 |
+
"memorise": "memorize",
|
960 |
+
"memorised": "memorized",
|
961 |
+
"memorises": "memorizes",
|
962 |
+
"memorising": "memorizing",
|
963 |
+
"mesmerise": "mesmerize",
|
964 |
+
"mesmerised": "mesmerized",
|
965 |
+
"mesmerises": "mesmerizes",
|
966 |
+
"mesmerising": "mesmerizing",
|
967 |
+
"metabolise": "metabolize",
|
968 |
+
"metabolised": "metabolized",
|
969 |
+
"metabolises": "metabolizes",
|
970 |
+
"metabolising": "metabolizing",
|
971 |
+
"metre": "meter",
|
972 |
+
"metres": "meters",
|
973 |
+
"mhm": "hmm",
|
974 |
+
"micrometre": "micrometer",
|
975 |
+
"micrometres": "micrometers",
|
976 |
+
"militarise": "militarize",
|
977 |
+
"militarised": "militarized",
|
978 |
+
"militarises": "militarizes",
|
979 |
+
"militarising": "militarizing",
|
980 |
+
"milligramme": "milligram",
|
981 |
+
"milligrammes": "milligrams",
|
982 |
+
"millilitre": "milliliter",
|
983 |
+
"millilitres": "milliliters",
|
984 |
+
"millimetre": "millimeter",
|
985 |
+
"millimetres": "millimeters",
|
986 |
+
"miniaturisation": "miniaturization",
|
987 |
+
"miniaturise": "miniaturize",
|
988 |
+
"miniaturised": "miniaturized",
|
989 |
+
"miniaturises": "miniaturizes",
|
990 |
+
"miniaturising": "miniaturizing",
|
991 |
+
"minibusses": "minibuses",
|
992 |
+
"minimise": "minimize",
|
993 |
+
"minimised": "minimized",
|
994 |
+
"minimises": "minimizes",
|
995 |
+
"minimising": "minimizing",
|
996 |
+
"misbehaviour": "misbehavior",
|
997 |
+
"misdemeanour": "misdemeanor",
|
998 |
+
"misdemeanours": "misdemeanors",
|
999 |
+
"misspelt": "misspelled",
|
1000 |
+
"mitre": "miter",
|
1001 |
+
"mitres": "miters",
|
1002 |
+
"mm": "hmm",
|
1003 |
+
"mmm": "hmm",
|
1004 |
+
"mobilisation": "mobilization",
|
1005 |
+
"mobilise": "mobilize",
|
1006 |
+
"mobilised": "mobilized",
|
1007 |
+
"mobilises": "mobilizes",
|
1008 |
+
"mobilising": "mobilizing",
|
1009 |
+
"modelled": "modeled",
|
1010 |
+
"modeller": "modeler",
|
1011 |
+
"modellers": "modelers",
|
1012 |
+
"modelling": "modeling",
|
1013 |
+
"modernise": "modernize",
|
1014 |
+
"modernised": "modernized",
|
1015 |
+
"modernises": "modernizes",
|
1016 |
+
"modernising": "modernizing",
|
1017 |
+
"moisturise": "moisturize",
|
1018 |
+
"moisturised": "moisturized",
|
1019 |
+
"moisturiser": "moisturizer",
|
1020 |
+
"moisturisers": "moisturizers",
|
1021 |
+
"moisturises": "moisturizes",
|
1022 |
+
"moisturising": "moisturizing",
|
1023 |
+
"monologue": "monolog",
|
1024 |
+
"monologues": "monologs",
|
1025 |
+
"monopolisation": "monopolization",
|
1026 |
+
"monopolise": "monopolize",
|
1027 |
+
"monopolised": "monopolized",
|
1028 |
+
"monopolises": "monopolizes",
|
1029 |
+
"monopolising": "monopolizing",
|
1030 |
+
"moralise": "moralize",
|
1031 |
+
"moralised": "moralized",
|
1032 |
+
"moralises": "moralizes",
|
1033 |
+
"moralising": "moralizing",
|
1034 |
+
"motorised": "motorized",
|
1035 |
+
"mould": "mold",
|
1036 |
+
"moulded": "molded",
|
1037 |
+
"moulder": "molder",
|
1038 |
+
"mouldered": "moldered",
|
1039 |
+
"mouldering": "moldering",
|
1040 |
+
"moulders": "molders",
|
1041 |
+
"mouldier": "moldier",
|
1042 |
+
"mouldiest": "moldiest",
|
1043 |
+
"moulding": "molding",
|
1044 |
+
"mouldings": "moldings",
|
1045 |
+
"moulds": "molds",
|
1046 |
+
"mouldy": "moldy",
|
1047 |
+
"moult": "molt",
|
1048 |
+
"moulted": "molted",
|
1049 |
+
"moulting": "molting",
|
1050 |
+
"moults": "molts",
|
1051 |
+
"moustache": "mustache",
|
1052 |
+
"moustached": "mustached",
|
1053 |
+
"moustaches": "mustaches",
|
1054 |
+
"moustachioed": "mustachioed",
|
1055 |
+
"multicoloured": "multicolored",
|
1056 |
+
"nationalisation": "nationalization",
|
1057 |
+
"nationalisations": "nationalizations",
|
1058 |
+
"nationalise": "nationalize",
|
1059 |
+
"nationalised": "nationalized",
|
1060 |
+
"nationalises": "nationalizes",
|
1061 |
+
"nationalising": "nationalizing",
|
1062 |
+
"naturalisation": "naturalization",
|
1063 |
+
"naturalise": "naturalize",
|
1064 |
+
"naturalised": "naturalized",
|
1065 |
+
"naturalises": "naturalizes",
|
1066 |
+
"naturalising": "naturalizing",
|
1067 |
+
"neighbour": "neighbor",
|
1068 |
+
"neighbourhood": "neighborhood",
|
1069 |
+
"neighbourhoods": "neighborhoods",
|
1070 |
+
"neighbouring": "neighboring",
|
1071 |
+
"neighbourliness": "neighborliness",
|
1072 |
+
"neighbourly": "neighborly",
|
1073 |
+
"neighbours": "neighbors",
|
1074 |
+
"neutralisation": "neutralization",
|
1075 |
+
"neutralise": "neutralize",
|
1076 |
+
"neutralised": "neutralized",
|
1077 |
+
"neutralises": "neutralizes",
|
1078 |
+
"neutralising": "neutralizing",
|
1079 |
+
"normalisation": "normalization",
|
1080 |
+
"normalise": "normalize",
|
1081 |
+
"normalised": "normalized",
|
1082 |
+
"normalises": "normalizes",
|
1083 |
+
"normalising": "normalizing",
|
1084 |
+
"odour": "odor",
|
1085 |
+
"odourless": "odorless",
|
1086 |
+
"odours": "odors",
|
1087 |
+
"oesophagus": "esophagus",
|
1088 |
+
"oesophaguses": "esophaguses",
|
1089 |
+
"oestrogen": "estrogen",
|
1090 |
+
"offence": "offense",
|
1091 |
+
"offences": "offenses",
|
1092 |
+
"omelette": "omelet",
|
1093 |
+
"omelettes": "omelets",
|
1094 |
+
"optimise": "optimize",
|
1095 |
+
"optimised": "optimized",
|
1096 |
+
"optimises": "optimizes",
|
1097 |
+
"optimising": "optimizing",
|
1098 |
+
"organisation": "organization",
|
1099 |
+
"organisational": "organizational",
|
1100 |
+
"organisations": "organizations",
|
1101 |
+
"organise": "organize",
|
1102 |
+
"organised": "organized",
|
1103 |
+
"organiser": "organizer",
|
1104 |
+
"organisers": "organizers",
|
1105 |
+
"organises": "organizes",
|
1106 |
+
"organising": "organizing",
|
1107 |
+
"orthopaedic": "orthopedic",
|
1108 |
+
"orthopaedics": "orthopedics",
|
1109 |
+
"ostracise": "ostracize",
|
1110 |
+
"ostracised": "ostracized",
|
1111 |
+
"ostracises": "ostracizes",
|
1112 |
+
"ostracising": "ostracizing",
|
1113 |
+
"outmanoeuvre": "outmaneuver",
|
1114 |
+
"outmanoeuvred": "outmaneuvered",
|
1115 |
+
"outmanoeuvres": "outmaneuvers",
|
1116 |
+
"outmanoeuvring": "outmaneuvering",
|
1117 |
+
"overemphasise": "overemphasize",
|
1118 |
+
"overemphasised": "overemphasized",
|
1119 |
+
"overemphasises": "overemphasizes",
|
1120 |
+
"overemphasising": "overemphasizing",
|
1121 |
+
"oxidisation": "oxidization",
|
1122 |
+
"oxidise": "oxidize",
|
1123 |
+
"oxidised": "oxidized",
|
1124 |
+
"oxidises": "oxidizes",
|
1125 |
+
"oxidising": "oxidizing",
|
1126 |
+
"paederast": "pederast",
|
1127 |
+
"paederasts": "pederasts",
|
1128 |
+
"paediatric": "pediatric",
|
1129 |
+
"paediatrician": "pediatrician",
|
1130 |
+
"paediatricians": "pediatricians",
|
1131 |
+
"paediatrics": "pediatrics",
|
1132 |
+
"paedophile": "pedophile",
|
1133 |
+
"paedophiles": "pedophiles",
|
1134 |
+
"paedophilia": "pedophilia",
|
1135 |
+
"palaeolithic": "paleolithic",
|
1136 |
+
"palaeontologist": "paleontologist",
|
1137 |
+
"palaeontologists": "paleontologists",
|
1138 |
+
"palaeontology": "paleontology",
|
1139 |
+
"panelled": "paneled",
|
1140 |
+
"panelling": "paneling",
|
1141 |
+
"panellist": "panelist",
|
1142 |
+
"panellists": "panelists",
|
1143 |
+
"paralyse": "paralyze",
|
1144 |
+
"paralysed": "paralyzed",
|
1145 |
+
"paralyses": "paralyzes",
|
1146 |
+
"paralysing": "paralyzing",
|
1147 |
+
"parcelled": "parceled",
|
1148 |
+
"parcelling": "parceling",
|
1149 |
+
"parlour": "parlor",
|
1150 |
+
"parlours": "parlors",
|
1151 |
+
"particularise": "particularize",
|
1152 |
+
"particularised": "particularized",
|
1153 |
+
"particularises": "particularizes",
|
1154 |
+
"particularising": "particularizing",
|
1155 |
+
"passivisation": "passivization",
|
1156 |
+
"passivise": "passivize",
|
1157 |
+
"passivised": "passivized",
|
1158 |
+
"passivises": "passivizes",
|
1159 |
+
"passivising": "passivizing",
|
1160 |
+
"pasteurisation": "pasteurization",
|
1161 |
+
"pasteurise": "pasteurize",
|
1162 |
+
"pasteurised": "pasteurized",
|
1163 |
+
"pasteurises": "pasteurizes",
|
1164 |
+
"pasteurising": "pasteurizing",
|
1165 |
+
"patronise": "patronize",
|
1166 |
+
"patronised": "patronized",
|
1167 |
+
"patronises": "patronizes",
|
1168 |
+
"patronising": "patronizing",
|
1169 |
+
"patronisingly": "patronizingly",
|
1170 |
+
"pedalled": "pedaled",
|
1171 |
+
"pedalling": "pedaling",
|
1172 |
+
"pedestrianisation": "pedestrianization",
|
1173 |
+
"pedestrianise": "pedestrianize",
|
1174 |
+
"pedestrianised": "pedestrianized",
|
1175 |
+
"pedestrianises": "pedestrianizes",
|
1176 |
+
"pedestrianising": "pedestrianizing",
|
1177 |
+
"penalise": "penalize",
|
1178 |
+
"penalised": "penalized",
|
1179 |
+
"penalises": "penalizes",
|
1180 |
+
"penalising": "penalizing",
|
1181 |
+
"pencilled": "penciled",
|
1182 |
+
"pencilling": "penciling",
|
1183 |
+
"personalise": "personalize",
|
1184 |
+
"personalised": "personalized",
|
1185 |
+
"personalises": "personalizes",
|
1186 |
+
"personalising": "personalizing",
|
1187 |
+
"pharmacopoeia": "pharmacopeia",
|
1188 |
+
"pharmacopoeias": "pharmacopeias",
|
1189 |
+
"philosophise": "philosophize",
|
1190 |
+
"philosophised": "philosophized",
|
1191 |
+
"philosophises": "philosophizes",
|
1192 |
+
"philosophising": "philosophizing",
|
1193 |
+
"philtre": "filter",
|
1194 |
+
"philtres": "filters",
|
1195 |
+
"phoney": "phony",
|
1196 |
+
"plagiarise": "plagiarize",
|
1197 |
+
"plagiarised": "plagiarized",
|
1198 |
+
"plagiarises": "plagiarizes",
|
1199 |
+
"plagiarising": "plagiarizing",
|
1200 |
+
"plough": "plow",
|
1201 |
+
"ploughed": "plowed",
|
1202 |
+
"ploughing": "plowing",
|
1203 |
+
"ploughman": "plowman",
|
1204 |
+
"ploughmen": "plowmen",
|
1205 |
+
"ploughs": "plows",
|
1206 |
+
"ploughshare": "plowshare",
|
1207 |
+
"ploughshares": "plowshares",
|
1208 |
+
"polarisation": "polarization",
|
1209 |
+
"polarise": "polarize",
|
1210 |
+
"polarised": "polarized",
|
1211 |
+
"polarises": "polarizes",
|
1212 |
+
"polarising": "polarizing",
|
1213 |
+
"politicisation": "politicization",
|
1214 |
+
"politicise": "politicize",
|
1215 |
+
"politicised": "politicized",
|
1216 |
+
"politicises": "politicizes",
|
1217 |
+
"politicising": "politicizing",
|
1218 |
+
"popularisation": "popularization",
|
1219 |
+
"popularise": "popularize",
|
1220 |
+
"popularised": "popularized",
|
1221 |
+
"popularises": "popularizes",
|
1222 |
+
"popularising": "popularizing",
|
1223 |
+
"pouffe": "pouf",
|
1224 |
+
"pouffes": "poufs",
|
1225 |
+
"practise": "practice",
|
1226 |
+
"practised": "practiced",
|
1227 |
+
"practises": "practices",
|
1228 |
+
"practising": "practicing",
|
1229 |
+
"praesidium": "presidium",
|
1230 |
+
"praesidiums": "presidiums",
|
1231 |
+
"pressurisation": "pressurization",
|
1232 |
+
"pressurise": "pressurize",
|
1233 |
+
"pressurised": "pressurized",
|
1234 |
+
"pressurises": "pressurizes",
|
1235 |
+
"pressurising": "pressurizing",
|
1236 |
+
"pretence": "pretense",
|
1237 |
+
"pretences": "pretenses",
|
1238 |
+
"primaeval": "primeval",
|
1239 |
+
"prioritisation": "prioritization",
|
1240 |
+
"prioritise": "prioritize",
|
1241 |
+
"prioritised": "prioritized",
|
1242 |
+
"prioritises": "prioritizes",
|
1243 |
+
"prioritising": "prioritizing",
|
1244 |
+
"privatisation": "privatization",
|
1245 |
+
"privatisations": "privatizations",
|
1246 |
+
"privatise": "privatize",
|
1247 |
+
"privatised": "privatized",
|
1248 |
+
"privatises": "privatizes",
|
1249 |
+
"privatising": "privatizing",
|
1250 |
+
"professionalisation": "professionalization",
|
1251 |
+
"professionalise": "professionalize",
|
1252 |
+
"professionalised": "professionalized",
|
1253 |
+
"professionalises": "professionalizes",
|
1254 |
+
"professionalising": "professionalizing",
|
1255 |
+
"programme": "program",
|
1256 |
+
"programmes": "programs",
|
1257 |
+
"prologue": "prolog",
|
1258 |
+
"prologues": "prologs",
|
1259 |
+
"propagandise": "propagandize",
|
1260 |
+
"propagandised": "propagandized",
|
1261 |
+
"propagandises": "propagandizes",
|
1262 |
+
"propagandising": "propagandizing",
|
1263 |
+
"proselytise": "proselytize",
|
1264 |
+
"proselytised": "proselytized",
|
1265 |
+
"proselytiser": "proselytizer",
|
1266 |
+
"proselytisers": "proselytizers",
|
1267 |
+
"proselytises": "proselytizes",
|
1268 |
+
"proselytising": "proselytizing",
|
1269 |
+
"psychoanalyse": "psychoanalyze",
|
1270 |
+
"psychoanalysed": "psychoanalyzed",
|
1271 |
+
"psychoanalyses": "psychoanalyzes",
|
1272 |
+
"psychoanalysing": "psychoanalyzing",
|
1273 |
+
"publicise": "publicize",
|
1274 |
+
"publicised": "publicized",
|
1275 |
+
"publicises": "publicizes",
|
1276 |
+
"publicising": "publicizing",
|
1277 |
+
"pulverisation": "pulverization",
|
1278 |
+
"pulverise": "pulverize",
|
1279 |
+
"pulverised": "pulverized",
|
1280 |
+
"pulverises": "pulverizes",
|
1281 |
+
"pulverising": "pulverizing",
|
1282 |
+
"pummelled": "pummel",
|
1283 |
+
"pummelling": "pummeled",
|
1284 |
+
"pyjama": "pajama",
|
1285 |
+
"pyjamas": "pajamas",
|
1286 |
+
"pzazz": "pizzazz",
|
1287 |
+
"quarrelled": "quarreled",
|
1288 |
+
"quarrelling": "quarreling",
|
1289 |
+
"radicalise": "radicalize",
|
1290 |
+
"radicalised": "radicalized",
|
1291 |
+
"radicalises": "radicalizes",
|
1292 |
+
"radicalising": "radicalizing",
|
1293 |
+
"rancour": "rancor",
|
1294 |
+
"randomise": "randomize",
|
1295 |
+
"randomised": "randomized",
|
1296 |
+
"randomises": "randomizes",
|
1297 |
+
"randomising": "randomizing",
|
1298 |
+
"rationalisation": "rationalization",
|
1299 |
+
"rationalisations": "rationalizations",
|
1300 |
+
"rationalise": "rationalize",
|
1301 |
+
"rationalised": "rationalized",
|
1302 |
+
"rationalises": "rationalizes",
|
1303 |
+
"rationalising": "rationalizing",
|
1304 |
+
"ravelled": "raveled",
|
1305 |
+
"ravelling": "raveling",
|
1306 |
+
"realisable": "realizable",
|
1307 |
+
"realisation": "realization",
|
1308 |
+
"realisations": "realizations",
|
1309 |
+
"realise": "realize",
|
1310 |
+
"realised": "realized",
|
1311 |
+
"realises": "realizes",
|
1312 |
+
"realising": "realizing",
|
1313 |
+
"recognisable": "recognizable",
|
1314 |
+
"recognisably": "recognizably",
|
1315 |
+
"recognisance": "recognizance",
|
1316 |
+
"recognise": "recognize",
|
1317 |
+
"recognised": "recognized",
|
1318 |
+
"recognises": "recognizes",
|
1319 |
+
"recognising": "recognizing",
|
1320 |
+
"reconnoitre": "reconnoiter",
|
1321 |
+
"reconnoitred": "reconnoitered",
|
1322 |
+
"reconnoitres": "reconnoiters",
|
1323 |
+
"reconnoitring": "reconnoitering",
|
1324 |
+
"refuelled": "refueled",
|
1325 |
+
"refuelling": "refueling",
|
1326 |
+
"regularisation": "regularization",
|
1327 |
+
"regularise": "regularize",
|
1328 |
+
"regularised": "regularized",
|
1329 |
+
"regularises": "regularizes",
|
1330 |
+
"regularising": "regularizing",
|
1331 |
+
"remodelled": "remodeled",
|
1332 |
+
"remodelling": "remodeling",
|
1333 |
+
"remould": "remold",
|
1334 |
+
"remoulded": "remolded",
|
1335 |
+
"remoulding": "remolding",
|
1336 |
+
"remoulds": "remolds",
|
1337 |
+
"reorganisation": "reorganization",
|
1338 |
+
"reorganisations": "reorganizations",
|
1339 |
+
"reorganise": "reorganize",
|
1340 |
+
"reorganised": "reorganized",
|
1341 |
+
"reorganises": "reorganizes",
|
1342 |
+
"reorganising": "reorganizing",
|
1343 |
+
"revelled": "reveled",
|
1344 |
+
"reveller": "reveler",
|
1345 |
+
"revellers": "revelers",
|
1346 |
+
"revelling": "reveling",
|
1347 |
+
"revitalise": "revitalize",
|
1348 |
+
"revitalised": "revitalized",
|
1349 |
+
"revitalises": "revitalizes",
|
1350 |
+
"revitalising": "revitalizing",
|
1351 |
+
"revolutionise": "revolutionize",
|
1352 |
+
"revolutionised": "revolutionized",
|
1353 |
+
"revolutionises": "revolutionizes",
|
1354 |
+
"revolutionising": "revolutionizing",
|
1355 |
+
"rhapsodise": "rhapsodize",
|
1356 |
+
"rhapsodised": "rhapsodized",
|
1357 |
+
"rhapsodises": "rhapsodizes",
|
1358 |
+
"rhapsodising": "rhapsodizing",
|
1359 |
+
"rigour": "rigor",
|
1360 |
+
"rigours": "rigors",
|
1361 |
+
"ritualised": "ritualized",
|
1362 |
+
"rivalled": "rivaled",
|
1363 |
+
"rivalling": "rivaling",
|
1364 |
+
"romanticise": "romanticize",
|
1365 |
+
"romanticised": "romanticized",
|
1366 |
+
"romanticises": "romanticizes",
|
1367 |
+
"romanticising": "romanticizing",
|
1368 |
+
"rumour": "rumor",
|
1369 |
+
"rumoured": "rumored",
|
1370 |
+
"rumours": "rumors",
|
1371 |
+
"sabre": "saber",
|
1372 |
+
"sabres": "sabers",
|
1373 |
+
"saltpetre": "saltpeter",
|
1374 |
+
"sanitise": "sanitize",
|
1375 |
+
"sanitised": "sanitized",
|
1376 |
+
"sanitises": "sanitizes",
|
1377 |
+
"sanitising": "sanitizing",
|
1378 |
+
"satirise": "satirize",
|
1379 |
+
"satirised": "satirized",
|
1380 |
+
"satirises": "satirizes",
|
1381 |
+
"satirising": "satirizing",
|
1382 |
+
"saviour": "savior",
|
1383 |
+
"saviours": "saviors",
|
1384 |
+
"savour": "savor",
|
1385 |
+
"savoured": "savored",
|
1386 |
+
"savouries": "savories",
|
1387 |
+
"savouring": "savoring",
|
1388 |
+
"savours": "savors",
|
1389 |
+
"savoury": "savory",
|
1390 |
+
"scandalise": "scandalize",
|
1391 |
+
"scandalised": "scandalized",
|
1392 |
+
"scandalises": "scandalizes",
|
1393 |
+
"scandalising": "scandalizing",
|
1394 |
+
"sceptic": "skeptic",
|
1395 |
+
"sceptical": "skeptical",
|
1396 |
+
"sceptically": "skeptically",
|
1397 |
+
"scepticism": "skepticism",
|
1398 |
+
"sceptics": "skeptics",
|
1399 |
+
"sceptre": "scepter",
|
1400 |
+
"sceptres": "scepters",
|
1401 |
+
"scrutinise": "scrutinize",
|
1402 |
+
"scrutinised": "scrutinized",
|
1403 |
+
"scrutinises": "scrutinizes",
|
1404 |
+
"scrutinising": "scrutinizing",
|
1405 |
+
"secularisation": "secularization",
|
1406 |
+
"secularise": "secularize",
|
1407 |
+
"secularised": "secularized",
|
1408 |
+
"secularises": "secularizes",
|
1409 |
+
"secularising": "secularizing",
|
1410 |
+
"sensationalise": "sensationalize",
|
1411 |
+
"sensationalised": "sensationalized",
|
1412 |
+
"sensationalises": "sensationalizes",
|
1413 |
+
"sensationalising": "sensationalizing",
|
1414 |
+
"sensitise": "sensitize",
|
1415 |
+
"sensitised": "sensitized",
|
1416 |
+
"sensitises": "sensitizes",
|
1417 |
+
"sensitising": "sensitizing",
|
1418 |
+
"sentimentalise": "sentimentalize",
|
1419 |
+
"sentimentalised": "sentimentalized",
|
1420 |
+
"sentimentalises": "sentimentalizes",
|
1421 |
+
"sentimentalising": "sentimentalizing",
|
1422 |
+
"sepulchre": "sepulcher",
|
1423 |
+
"sepulchres": "sepulchers",
|
1424 |
+
"serialisation": "serialization",
|
1425 |
+
"serialisations": "serializations",
|
1426 |
+
"serialise": "serialize",
|
1427 |
+
"serialised": "serialized",
|
1428 |
+
"serialises": "serializes",
|
1429 |
+
"serialising": "serializing",
|
1430 |
+
"sermonise": "sermonize",
|
1431 |
+
"sermonised": "sermonized",
|
1432 |
+
"sermonises": "sermonizes",
|
1433 |
+
"sermonising": "sermonizing",
|
1434 |
+
"sheikh": "sheik",
|
1435 |
+
"shovelled": "shoveled",
|
1436 |
+
"shovelling": "shoveling",
|
1437 |
+
"shrivelled": "shriveled",
|
1438 |
+
"shrivelling": "shriveling",
|
1439 |
+
"signalise": "signalize",
|
1440 |
+
"signalised": "signalized",
|
1441 |
+
"signalises": "signalizes",
|
1442 |
+
"signalising": "signalizing",
|
1443 |
+
"signalled": "signaled",
|
1444 |
+
"signalling": "signaling",
|
1445 |
+
"smoulder": "smolder",
|
1446 |
+
"smouldered": "smoldered",
|
1447 |
+
"smouldering": "smoldering",
|
1448 |
+
"smoulders": "smolders",
|
1449 |
+
"snivelled": "sniveled",
|
1450 |
+
"snivelling": "sniveling",
|
1451 |
+
"snorkelled": "snorkeled",
|
1452 |
+
"snorkelling": "snorkeling",
|
1453 |
+
"snowplough": "snowplow",
|
1454 |
+
"snowploughs": "snowplow",
|
1455 |
+
"socialisation": "socialization",
|
1456 |
+
"socialise": "socialize",
|
1457 |
+
"socialised": "socialized",
|
1458 |
+
"socialises": "socializes",
|
1459 |
+
"socialising": "socializing",
|
1460 |
+
"sodomise": "sodomize",
|
1461 |
+
"sodomised": "sodomized",
|
1462 |
+
"sodomises": "sodomizes",
|
1463 |
+
"sodomising": "sodomizing",
|
1464 |
+
"solemnise": "solemnize",
|
1465 |
+
"solemnised": "solemnized",
|
1466 |
+
"solemnises": "solemnizes",
|
1467 |
+
"solemnising": "solemnizing",
|
1468 |
+
"sombre": "somber",
|
1469 |
+
"specialisation": "specialization",
|
1470 |
+
"specialisations": "specializations",
|
1471 |
+
"specialise": "specialize",
|
1472 |
+
"specialised": "specialized",
|
1473 |
+
"specialises": "specializes",
|
1474 |
+
"specialising": "specializing",
|
1475 |
+
"spectre": "specter",
|
1476 |
+
"spectres": "specters",
|
1477 |
+
"spiralled": "spiraled",
|
1478 |
+
"spiralling": "spiraling",
|
1479 |
+
"splendour": "splendor",
|
1480 |
+
"splendours": "splendors",
|
1481 |
+
"squirrelled": "squirreled",
|
1482 |
+
"squirrelling": "squirreling",
|
1483 |
+
"stabilisation": "stabilization",
|
1484 |
+
"stabilise": "stabilize",
|
1485 |
+
"stabilised": "stabilized",
|
1486 |
+
"stabiliser": "stabilizer",
|
1487 |
+
"stabilisers": "stabilizers",
|
1488 |
+
"stabilises": "stabilizes",
|
1489 |
+
"stabilising": "stabilizing",
|
1490 |
+
"standardisation": "standardization",
|
1491 |
+
"standardise": "standardize",
|
1492 |
+
"standardised": "standardized",
|
1493 |
+
"standardises": "standardizes",
|
1494 |
+
"standardising": "standardizing",
|
1495 |
+
"stencilled": "stenciled",
|
1496 |
+
"stencilling": "stenciling",
|
1497 |
+
"sterilisation": "sterilization",
|
1498 |
+
"sterilisations": "sterilizations",
|
1499 |
+
"sterilise": "sterilize",
|
1500 |
+
"sterilised": "sterilized",
|
1501 |
+
"steriliser": "sterilizer",
|
1502 |
+
"sterilisers": "sterilizers",
|
1503 |
+
"sterilises": "sterilizes",
|
1504 |
+
"sterilising": "sterilizing",
|
1505 |
+
"stigmatisation": "stigmatization",
|
1506 |
+
"stigmatise": "stigmatize",
|
1507 |
+
"stigmatised": "stigmatized",
|
1508 |
+
"stigmatises": "stigmatizes",
|
1509 |
+
"stigmatising": "stigmatizing",
|
1510 |
+
"storey": "story",
|
1511 |
+
"storeys": "stories",
|
1512 |
+
"subsidisation": "subsidization",
|
1513 |
+
"subsidise": "subsidize",
|
1514 |
+
"subsidised": "subsidized",
|
1515 |
+
"subsidiser": "subsidizer",
|
1516 |
+
"subsidisers": "subsidizers",
|
1517 |
+
"subsidises": "subsidizes",
|
1518 |
+
"subsidising": "subsidizing",
|
1519 |
+
"succour": "succor",
|
1520 |
+
"succoured": "succored",
|
1521 |
+
"succouring": "succoring",
|
1522 |
+
"succours": "succors",
|
1523 |
+
"sulphate": "sulfate",
|
1524 |
+
"sulphates": "sulfates",
|
1525 |
+
"sulphide": "sulfide",
|
1526 |
+
"sulphides": "sulfides",
|
1527 |
+
"sulphur": "sulfur",
|
1528 |
+
"sulphurous": "sulfurous",
|
1529 |
+
"summarise": "summarize",
|
1530 |
+
"summarised": "summarized",
|
1531 |
+
"summarises": "summarizes",
|
1532 |
+
"summarising": "summarizing",
|
1533 |
+
"swivelled": "swiveled",
|
1534 |
+
"swivelling": "swiveling",
|
1535 |
+
"symbolise": "symbolize",
|
1536 |
+
"symbolised": "symbolized",
|
1537 |
+
"symbolises": "symbolizes",
|
1538 |
+
"symbolising": "symbolizing",
|
1539 |
+
"sympathise": "sympathize",
|
1540 |
+
"sympathised": "sympathized",
|
1541 |
+
"sympathiser": "sympathizer",
|
1542 |
+
"sympathisers": "sympathizers",
|
1543 |
+
"sympathises": "sympathizes",
|
1544 |
+
"sympathising": "sympathizing",
|
1545 |
+
"synchronisation": "synchronization",
|
1546 |
+
"synchronise": "synchronize",
|
1547 |
+
"synchronised": "synchronized",
|
1548 |
+
"synchronises": "synchronizes",
|
1549 |
+
"synchronising": "synchronizing",
|
1550 |
+
"synthesise": "synthesize",
|
1551 |
+
"synthesised": "synthesized",
|
1552 |
+
"synthesiser": "synthesizer",
|
1553 |
+
"synthesisers": "synthesizers",
|
1554 |
+
"synthesises": "synthesizes",
|
1555 |
+
"synthesising": "synthesizing",
|
1556 |
+
"syphon": "siphon",
|
1557 |
+
"syphoned": "siphoned",
|
1558 |
+
"syphoning": "siphoning",
|
1559 |
+
"syphons": "siphons",
|
1560 |
+
"systematisation": "systematization",
|
1561 |
+
"systematise": "systematize",
|
1562 |
+
"systematised": "systematized",
|
1563 |
+
"systematises": "systematizes",
|
1564 |
+
"systematising": "systematizing",
|
1565 |
+
"tantalise": "tantalize",
|
1566 |
+
"tantalised": "tantalized",
|
1567 |
+
"tantalises": "tantalizes",
|
1568 |
+
"tantalising": "tantalizing",
|
1569 |
+
"tantalisingly": "tantalizingly",
|
1570 |
+
"tasselled": "tasseled",
|
1571 |
+
"technicolour": "technicolor",
|
1572 |
+
"temporise": "temporize",
|
1573 |
+
"temporised": "temporized",
|
1574 |
+
"temporises": "temporizes",
|
1575 |
+
"temporising": "temporizing",
|
1576 |
+
"tenderise": "tenderize",
|
1577 |
+
"tenderised": "tenderized",
|
1578 |
+
"tenderises": "tenderizes",
|
1579 |
+
"tenderising": "tenderizing",
|
1580 |
+
"terrorise": "terrorize",
|
1581 |
+
"terrorised": "terrorized",
|
1582 |
+
"terrorises": "terrorizes",
|
1583 |
+
"terrorising": "terrorizing",
|
1584 |
+
"theatre": "theater",
|
1585 |
+
"theatregoer": "theatergoer",
|
1586 |
+
"theatregoers": "theatergoers",
|
1587 |
+
"theatres": "theaters",
|
1588 |
+
"theorise": "theorize",
|
1589 |
+
"theorised": "theorized",
|
1590 |
+
"theorises": "theorizes",
|
1591 |
+
"theorising": "theorizing",
|
1592 |
+
"tonne": "ton",
|
1593 |
+
"tonnes": "tons",
|
1594 |
+
"towelled": "toweled",
|
1595 |
+
"towelling": "toweling",
|
1596 |
+
"toxaemia": "toxemia",
|
1597 |
+
"tranquillise": "tranquilize",
|
1598 |
+
"tranquillised": "tranquilized",
|
1599 |
+
"tranquilliser": "tranquilizer",
|
1600 |
+
"tranquillisers": "tranquilizers",
|
1601 |
+
"tranquillises": "tranquilizes",
|
1602 |
+
"tranquillising": "tranquilizing",
|
1603 |
+
"tranquillity": "tranquility",
|
1604 |
+
"tranquillize": "tranquilize",
|
1605 |
+
"tranquillized": "tranquilized",
|
1606 |
+
"tranquillizer": "tranquilizer",
|
1607 |
+
"tranquillizers": "tranquilizers",
|
1608 |
+
"tranquillizes": "tranquilizes",
|
1609 |
+
"tranquillizing": "tranquilizing",
|
1610 |
+
"tranquilly": "tranquility",
|
1611 |
+
"transistorised": "transistorized",
|
1612 |
+
"traumatise": "traumatize",
|
1613 |
+
"traumatised": "traumatized",
|
1614 |
+
"traumatises": "traumatizes",
|
1615 |
+
"traumatising": "traumatizing",
|
1616 |
+
"travelled": "traveled",
|
1617 |
+
"traveller": "traveler",
|
1618 |
+
"travellers": "travelers",
|
1619 |
+
"travelling": "traveling",
|
1620 |
+
"travelog": "travelogue",
|
1621 |
+
"travelogs": "travelogues",
|
1622 |
+
"trialled": "trialed",
|
1623 |
+
"trialling": "trialing",
|
1624 |
+
"tricolour": "tricolor",
|
1625 |
+
"tricolours": "tricolors",
|
1626 |
+
"trivialise": "trivialize",
|
1627 |
+
"trivialised": "trivialized",
|
1628 |
+
"trivialises": "trivializes",
|
1629 |
+
"trivialising": "trivializing",
|
1630 |
+
"tumour": "tumor",
|
1631 |
+
"tumours": "tumors",
|
1632 |
+
"tunnelled": "tunneled",
|
1633 |
+
"tunnelling": "tunneling",
|
1634 |
+
"tyrannise": "tyrannize",
|
1635 |
+
"tyrannised": "tyrannized",
|
1636 |
+
"tyrannises": "tyrannizes",
|
1637 |
+
"tyrannising": "tyrannizing",
|
1638 |
+
"tyre": "tire",
|
1639 |
+
"tyres": "tires",
|
1640 |
+
"unauthorised": "unauthorized",
|
1641 |
+
"uncivilised": "uncivilized",
|
1642 |
+
"underutilised": "underutilized",
|
1643 |
+
"unequalled": "unequaled",
|
1644 |
+
"unfavourable": "unfavorable",
|
1645 |
+
"unfavourably": "unfavorably",
|
1646 |
+
"unionisation": "unionization",
|
1647 |
+
"unionise": "unionize",
|
1648 |
+
"unionised": "unionized",
|
1649 |
+
"unionises": "unionizes",
|
1650 |
+
"unionising": "unionizing",
|
1651 |
+
"unorganised": "unorganized",
|
1652 |
+
"unravelled": "unraveled",
|
1653 |
+
"unravelling": "unraveling",
|
1654 |
+
"unrecognisable": "unrecognizable",
|
1655 |
+
"unrecognised": "unrecognized",
|
1656 |
+
"unrivalled": "unrivaled",
|
1657 |
+
"unsavoury": "unsavory",
|
1658 |
+
"untrammelled": "untrammeled",
|
1659 |
+
"urbanisation": "urbanization",
|
1660 |
+
"urbanise": "urbanize",
|
1661 |
+
"urbanised": "urbanized",
|
1662 |
+
"urbanises": "urbanizes",
|
1663 |
+
"urbanising": "urbanizing",
|
1664 |
+
"utilisable": "utilizable",
|
1665 |
+
"utilisation": "utilization",
|
1666 |
+
"utilise": "utilize",
|
1667 |
+
"utilised": "utilized",
|
1668 |
+
"utilises": "utilizes",
|
1669 |
+
"utilising": "utilizing",
|
1670 |
+
"valour": "valor",
|
1671 |
+
"vandalise": "vandalize",
|
1672 |
+
"vandalised": "vandalized",
|
1673 |
+
"vandalises": "vandalizes",
|
1674 |
+
"vandalising": "vandalizing",
|
1675 |
+
"vaporisation": "vaporization",
|
1676 |
+
"vaporise": "vaporize",
|
1677 |
+
"vaporised": "vaporized",
|
1678 |
+
"vaporises": "vaporizes",
|
1679 |
+
"vaporising": "vaporizing",
|
1680 |
+
"vapour": "vapor",
|
1681 |
+
"vapours": "vapors",
|
1682 |
+
"verbalise": "verbalize",
|
1683 |
+
"verbalised": "verbalized",
|
1684 |
+
"verbalises": "verbalizes",
|
1685 |
+
"verbalising": "verbalizing",
|
1686 |
+
"victimisation": "victimization",
|
1687 |
+
"victimise": "victimize",
|
1688 |
+
"victimised": "victimized",
|
1689 |
+
"victimises": "victimizes",
|
1690 |
+
"victimising": "victimizing",
|
1691 |
+
"videodisc": "videodisk",
|
1692 |
+
"videodiscs": "videodisks",
|
1693 |
+
"vigour": "vigor",
|
1694 |
+
"visualisation": "visualization",
|
1695 |
+
"visualisations": "visualizations",
|
1696 |
+
"visualise": "visualize",
|
1697 |
+
"visualised": "visualized",
|
1698 |
+
"visualises": "visualizes",
|
1699 |
+
"visualising": "visualizing",
|
1700 |
+
"vocalisation": "vocalization",
|
1701 |
+
"vocalisations": "vocalizations",
|
1702 |
+
"vocalise": "vocalize",
|
1703 |
+
"vocalised": "vocalized",
|
1704 |
+
"vocalises": "vocalizes",
|
1705 |
+
"vocalising": "vocalizing",
|
1706 |
+
"vulcanised": "vulcanized",
|
1707 |
+
"vulgarisation": "vulgarization",
|
1708 |
+
"vulgarise": "vulgarize",
|
1709 |
+
"vulgarised": "vulgarized",
|
1710 |
+
"vulgarises": "vulgarizes",
|
1711 |
+
"vulgarising": "vulgarizing",
|
1712 |
+
"waggon": "wagon",
|
1713 |
+
"waggons": "wagons",
|
1714 |
+
"watercolour": "watercolor",
|
1715 |
+
"watercolours": "watercolors",
|
1716 |
+
"weaselled": "weaseled",
|
1717 |
+
"weaselling": "weaseling",
|
1718 |
+
"westernisation": "westernization",
|
1719 |
+
"westernise": "westernize",
|
1720 |
+
"westernised": "westernized",
|
1721 |
+
"westernises": "westernizes",
|
1722 |
+
"westernising": "westernizing",
|
1723 |
+
"womanise": "womanize",
|
1724 |
+
"womanised": "womanized",
|
1725 |
+
"womaniser": "womanizer",
|
1726 |
+
"womanisers": "womanizers",
|
1727 |
+
"womanises": "womanizes",
|
1728 |
+
"womanising": "womanizing",
|
1729 |
+
"woollen": "woolen",
|
1730 |
+
"woollens": "woolens",
|
1731 |
+
"woollies": "woolies",
|
1732 |
+
"woolly": "wooly",
|
1733 |
+
"worshipped": "worshiped",
|
1734 |
+
"worshipper": "worshiper",
|
1735 |
+
"worshipping": "worshiping",
|
1736 |
+
"yodelled": "yodeled",
|
1737 |
+
"yodelling": "yodeling",
|
1738 |
+
"yoghourt": "yogurt",
|
1739 |
+
"yoghourts": "yogurts",
|
1740 |
+
"yoghurt": "yogurt",
|
1741 |
+
"yoghurts": "yogurts"
|
1742 |
+
}
|
preprocessor_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44cda7346cae3b651634e258c6e863f6cb2bf256a9e1242418c253c76c4eca07
|
3 |
+
size 290458721
|
runs/Dec17_00-49-12_129-213-88-66/1671238160.9553778/events.out.tfevents.1671238160.129-213-88-66.1326738.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ca3537002c9c2f11473c563c9751585e5bdf203861012ff01578b0668dd1316
|
3 |
+
size 5887
|
runs/Dec17_00-49-12_129-213-88-66/events.out.tfevents.1671238160.129-213-88-66.1326738.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf71647a77939dead2799caf40b17b3799b5fd18bc2fe56bdbaef3259cabda02
|
3 |
+
size 7886
|
special_tokens_map.json
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|endoftext|>",
|
4 |
+
"<|startoftranscript|>",
|
5 |
+
"<|en|>",
|
6 |
+
"<|zh|>",
|
7 |
+
"<|de|>",
|
8 |
+
"<|es|>",
|
9 |
+
"<|ru|>",
|
10 |
+
"<|ko|>",
|
11 |
+
"<|fr|>",
|
12 |
+
"<|ja|>",
|
13 |
+
"<|pt|>",
|
14 |
+
"<|tr|>",
|
15 |
+
"<|pl|>",
|
16 |
+
"<|ca|>",
|
17 |
+
"<|nl|>",
|
18 |
+
"<|ar|>",
|
19 |
+
"<|sv|>",
|
20 |
+
"<|it|>",
|
21 |
+
"<|id|>",
|
22 |
+
"<|hi|>",
|
23 |
+
"<|fi|>",
|
24 |
+
"<|vi|>",
|
25 |
+
"<|iw|>",
|
26 |
+
"<|uk|>",
|
27 |
+
"<|el|>",
|
28 |
+
"<|ms|>",
|
29 |
+
"<|cs|>",
|
30 |
+
"<|ro|>",
|
31 |
+
"<|da|>",
|
32 |
+
"<|hu|>",
|
33 |
+
"<|ta|>",
|
34 |
+
"<|no|>",
|
35 |
+
"<|th|>",
|
36 |
+
"<|ur|>",
|
37 |
+
"<|hr|>",
|
38 |
+
"<|bg|>",
|
39 |
+
"<|lt|>",
|
40 |
+
"<|la|>",
|
41 |
+
"<|mi|>",
|
42 |
+
"<|ml|>",
|
43 |
+
"<|cy|>",
|
44 |
+
"<|sk|>",
|
45 |
+
"<|te|>",
|
46 |
+
"<|fa|>",
|
47 |
+
"<|lv|>",
|
48 |
+
"<|bn|>",
|
49 |
+
"<|sr|>",
|
50 |
+
"<|az|>",
|
51 |
+
"<|sl|>",
|
52 |
+
"<|kn|>",
|
53 |
+
"<|et|>",
|
54 |
+
"<|mk|>",
|
55 |
+
"<|br|>",
|
56 |
+
"<|eu|>",
|
57 |
+
"<|is|>",
|
58 |
+
"<|hy|>",
|
59 |
+
"<|ne|>",
|
60 |
+
"<|mn|>",
|
61 |
+
"<|bs|>",
|
62 |
+
"<|kk|>",
|
63 |
+
"<|sq|>",
|
64 |
+
"<|sw|>",
|
65 |
+
"<|gl|>",
|
66 |
+
"<|mr|>",
|
67 |
+
"<|pa|>",
|
68 |
+
"<|si|>",
|
69 |
+
"<|km|>",
|
70 |
+
"<|sn|>",
|
71 |
+
"<|yo|>",
|
72 |
+
"<|so|>",
|
73 |
+
"<|af|>",
|
74 |
+
"<|oc|>",
|
75 |
+
"<|ka|>",
|
76 |
+
"<|be|>",
|
77 |
+
"<|tg|>",
|
78 |
+
"<|sd|>",
|
79 |
+
"<|gu|>",
|
80 |
+
"<|am|>",
|
81 |
+
"<|yi|>",
|
82 |
+
"<|lo|>",
|
83 |
+
"<|uz|>",
|
84 |
+
"<|fo|>",
|
85 |
+
"<|ht|>",
|
86 |
+
"<|ps|>",
|
87 |
+
"<|tk|>",
|
88 |
+
"<|nn|>",
|
89 |
+
"<|mt|>",
|
90 |
+
"<|sa|>",
|
91 |
+
"<|lb|>",
|
92 |
+
"<|my|>",
|
93 |
+
"<|bo|>",
|
94 |
+
"<|tl|>",
|
95 |
+
"<|mg|>",
|
96 |
+
"<|as|>",
|
97 |
+
"<|tt|>",
|
98 |
+
"<|haw|>",
|
99 |
+
"<|ln|>",
|
100 |
+
"<|ha|>",
|
101 |
+
"<|ba|>",
|
102 |
+
"<|jw|>",
|
103 |
+
"<|su|>",
|
104 |
+
"<|translate|>",
|
105 |
+
"<|transcribe|>",
|
106 |
+
"<|startoflm|>",
|
107 |
+
"<|startofprev|>",
|
108 |
+
"<|nocaptions|>",
|
109 |
+
"<|notimestamps|>"
|
110 |
+
],
|
111 |
+
"bos_token": {
|
112 |
+
"content": "<|endoftext|>",
|
113 |
+
"lstrip": false,
|
114 |
+
"normalized": true,
|
115 |
+
"rstrip": false,
|
116 |
+
"single_word": false
|
117 |
+
},
|
118 |
+
"eos_token": {
|
119 |
+
"content": "<|endoftext|>",
|
120 |
+
"lstrip": false,
|
121 |
+
"normalized": true,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false
|
124 |
+
},
|
125 |
+
"pad_token": "<|endoftext|>",
|
126 |
+
"unk_token": {
|
127 |
+
"content": "",
|
128 |
+
"lstrip": false,
|
129 |
+
"normalized": true,
|
130 |
+
"rstrip": false,
|
131 |
+
"single_word": false
|
132 |
+
}
|
133 |
+
}
|
src/__pycache__/preprocess.cpython-38.pyc
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72252779625e0b17ea23de5aff50db205e021416118dc6e5eed272c57dafb617
|
3 |
+
size 874
|
src/__pycache__/run_speech_recognition_seq2seq_streaming.cpython-38.pyc
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e83b3c0a5d09c30048f565988ef0dcc3ccac6db1e54a79ef08f6fcdee7d3b4c0
|
3 |
+
size 20306
|
src/preprocess.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import AutoFeatureExtractor, AutoTokenizer
|
2 |
+
|
3 |
+
pretrained_name = 'openai/whisper-base'
|
4 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained(pretrained_name)
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained(pretrained_name)
|
6 |
+
|
7 |
+
def prepare_dataset(
|
8 |
+
sample: dict,
|
9 |
+
labels_max_len: int = None,
|
10 |
+
):
|
11 |
+
sample = sample['audio']
|
12 |
+
inputs = feature_extractor(sample["array"], sampling_rate=sample["sampling_rate"])
|
13 |
+
|
14 |
+
sample['input_features'] = inputs.get('input_features')[0]
|
15 |
+
sample["input_length"] = len(sample["array"])
|
16 |
+
|
17 |
+
input_str = sample['sentence']
|
18 |
+
|
19 |
+
sample['labels'] = tokenizer(input_str).input_ids
|
20 |
+
sample['labels_length'] = len(sample['labels']) # include special characters
|
21 |
+
|
22 |
+
sample['labels_truncated'] = 0
|
23 |
+
# need to truncate validation and test labels that are longer that model.config.max_length.
|
24 |
+
# can't drop such examples because this will affect validation and test scores.
|
25 |
+
# thus need to truncate.
|
26 |
+
if labels_max_len is not None:
|
27 |
+
if len(sample['labels']) > labels_max_len:
|
28 |
+
sample['labels'] = sample['labels'][:labels_max_len]
|
29 |
+
sample['lab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
|
1 |
+
## Description
|
2 |
+
|
3 |
+
Fine-tuning [OpenAI Whisper](https://github.com/openai/whisper) model for Belarusian language during
|
4 |
+
[Whisper fine-tuning Event](https://github.com/huggingface/community-events/tree/main/whisper-fine-tuning-event)
|
5 |
+
hosted by HuggingFace x Lambda.
|
6 |
+
|
7 |
+
The code in this repository is a modified version of code from
|
8 |
+
[Whisper fine-tuning Event](https://github.com/huggingface/community-events/tree/main/whisper-fine-tuning-event) repo.
|
9 |
+
|
10 |
+
## Tips:
|
11 |
+
* start with a port worwarding to monitor Tensorboard logs on local computer:
|
12 |
+
```
|
13 |
+
ssh <remote-address> -L <local_port>:localhost:<remote_tensorboard_port>
|
14 |
+
```
|
15 |
+
* Train with redirecting output to a file using `tee`:
|
16 |
+
```
|
17 |
+
source src/run.sh 2>&1 | tee train_run_<run_number>.log
|
18 |
+
```
|
19 |
+
|
20 |
+
## Fine-tuning todos:
|
21 |
+
* logs are printed only right before the evalutaion:<br>
|
22 |
+
```
|
23 |
+
--logging_steps="50"
|
24 |
+
--eval_steps="1000"
|
25 |
+
```
|
26 |
+
* on the next run:
|
27 |
+
* download the whole dataset before the launch.
|
28 |
+
this will probably save some time for data processing,
|
29 |
+
and allow to load and prepare data in a parallel fashion
|
30 |
+
* can also decrease eval batch size. currently it's probably causing GPU to wait for CPU to prepare a next batch
|
31 |
+
* perform evaluation of fine-tuned model on CommonVoice test set
|
32 |
+
* add [Whisper fine-tuning Event repo](https://github.com/huggingface/community-events/tree/main/whisper-fine-tuning-event)
|
33 |
+
to remotes and merge updates from this original event repo
|
34 |
+
* Learning rate:
|
35 |
+
* max learning rate is not the same as LR passed as a parameter to training script. it is actually lower.
|
36 |
+
* when resuming training, LR scheduling behaves incorrectly
|
37 |
+
* check exact sizes of train, eval, test sets of CommonVoice 11
|
38 |
+
* fill TODOs in Notes section with answers and discussions from a Discord
|
39 |
+
|
40 |
+
## Resuming training from exising checkpoint
|
41 |
+
When resuming training from existing checkpoint:
|
42 |
+
* it's better to save all `checkpoint-\d+` dirs. better not to rely on data saved to `output_dir` because:
|
43 |
+
* not all data is saved to `output_dir`. e.g. following files are not saved to `output_dir`:
|
44 |
+
`optimizer.pt`, `rng_state.pth`, `scaler.pt`, `scheduler.pt`. so can't resume training in a correct way from
|
45 |
+
data saved to `output_dir`
|
46 |
+
* when resuming training from `output_dir` as a checkpoint dir, model saved to `output_dir` can be worse than
|
47 |
+
previously save (need to investifate further. but such happened already)
|
48 |
+
* learning rate gets reset if passing same parameter value to training script as in previour run.<br>
|
49 |
+
need to provide learning rate from the last step of previous run to continue
|
50 |
+
training in a correct way
|
51 |
+
* however even if passing learning rate from the last step, in the new run it has different value than expected
|
52 |
+
* probably because last checkpont was chosen incorrectly
|
53 |
+
* or learning rate is treated as a starting learning rate at step 0 and not on step X (where we resume).<br>
|
54 |
+
need to try to pass same LR that was passes as a starting LR to the very first run
|
55 |
+
* it's unclear whether decision on saving current model
|
56 |
+
is made by comparing current metrics with metrics of the best checkpoint. I guess model with worse performance
|
57 |
+
will not overwrite best model checkpoint already exising in the output dir, but need to double check.
|
58 |
+
* we can set `ignore_data_skip=True` Training argument not to
|
59 |
+
skip data items already passed to a model - that will save time on data loads.
|
60 |
+
* it's unclear whether order of input items in the train set (that is shuffled) will be the same
|
61 |
+
across multiple reruns - i.e. it's unclear whether sampling is the same across reruns.
|
62 |
+
* if the sampling is the same across reruns, `ignore_data_skip=True` will lead to same items been passed to a model
|
63 |
+
in current run. it's OK if previous run ended with large step value on the last epoch.
|
64 |
+
if not, the same elements from the same epoch will be passed to a model again.
|
65 |
+
|
66 |
+
## Questions:
|
67 |
+
* What checkpoint (best, I guess) is saved in the `output_dir`?
|
68 |
+
How is it overwritten when resuming training from existing checkpoint?
|
69 |
+
* does `ShuffleCallback` work with StreamingDataset? it reshuffles data `on_epoch_begin()`,
|
70 |
+
but does StreamingDataset have any epochs?
|
71 |
+
* does streaming mode support parallel data load and processing?<br>
|
72 |
+
when using non-streaming mode we can use `dataset.map(..., num_proc=<num_proc>)`
|
73 |
+
|
74 |
+
|
75 |
+
## Notes:
|
76 |
+
* using CommonVoice 11 dataset in a streaming way.<br>
|
77 |
+
use `streaming=True` for train & validation & test.<br>
|
78 |
+
as an alternative, we can use `streaming=False` for validation & test sets to save time on data processing.
|
79 |
+
but the size of validation and test sets are unknown (need to check).
|
80 |
+
it's likely they are going to be large - thus pre-download of these sets might not reduce
|
81 |
+
overall fine-tuning time compared to streaming mode.
|
82 |
+
* size of train set is ~370'000 audiofiles. if using `batch_size=64`, then
|
83 |
+
1 epoch will have ~5782 steps. <br>
|
84 |
+
Because of `--eval_steps="1000"` will use `--max_steps="6000"` instead of `--max_steps="5800"`
|
85 |
+
to have evaluation metrics computed in the end of training.
|
86 |
+
* if using Google Colab, need to execute `sudo chmod -R 777 .git` inside hf repo to
|
87 |
+
to set right permissions to be able to push trained models to HuggingFace Hub
|
88 |
+
* Log tracking in Jupyter (not working) and in bash (works as expected with `tee`)
|
89 |
+
* Loggers in `run_speech.....py` do not control `transformers` and `datasets` loggers.
|
90 |
+
can't redirect their outputs using handlers. it's better and easier to redirect output in a bash
|
91 |
+
* Need to set `use_cache` to False since we're using gradient checkpointing, and the two are incompatible
|
92 |
+
* Default Linear scheduler is used
|
93 |
+
* Default Adam optimizer is used
|
94 |
+
|
95 |
+
### Logs not printed when expected
|
96 |
+
* Train logs are printed only before start of a validation.
|
97 |
+
During training they are not printed to a stdout.
|
98 |
+
All worked fine in a Colab.
|
99 |
+
* No progressbar for validation (at least when using streaming and iterable dataset).
|
100 |
+
possible reason is that when using streaming, the dataset len in unknown.
|
101 |
+
* Evaluation metrics get printed to stdout only before the next validation call.
|
102 |
+
All worked fine in a Colab.
|
103 |
+
* Possible reason: usage of `... | tee file.log`. But it's unlikely
|
104 |
+
|
105 |
+
### Text normalization
|
106 |
+
* Whispers BasicTextNormalizer splits words containing apostrophe:
|
107 |
+
```python
|
108 |
+
> from transformers.models.whisper.english_normalizer import BasicTextNormalizer
|
109 |
+
> normalizer = BasicTextNormalizer()
|
110 |
+
> normalizer("раз'яднаць")
|
111 |
+
'раз яднаць'
|
112 |
+
```
|
113 |
+
* That's why `BelarusianTextNormalizer` (edited version of `BasicTextNormalizer`) was added to training script:
|
114 |
+
```python
|
115 |
+
> from run_speech_recognition_seq2seq_streaming import BelarusianTextNormalizer
|
116 |
+
> normalizer_be = BelarusianTextNormalizer()
|
117 |
+
> normalizer_be("раз'яднаць")
|
118 |
+
"раз'яднаць"
|
119 |
+
```
|
120 |
+
|
121 |
+
### Different batch sizes for train and evaluation:
|
122 |
+
* Theoretically you can use a larger batch size for evaluation vs training!
|
123 |
+
* Training: we do a forward pass, storing all the activations, and then a backwards pass, storing all the gradients
|
124 |
+
* Inference (evaluation): we only do a forward pass, and don't store any activations
|
125 |
+
* So the memory required for evaluation is much lower than it is for training
|
126 |
+
(we're only doing the forward pass and not storing any values)
|
127 |
+
* In my experience, altering the eval batch size has little effect on eval speed ->
|
128 |
+
I set it to a lower value as this tends to give a more responsive progress bar
|
129 |
+
when evaluating in non-streaming mode (the bar updates faster and more frequently)
|
130 |
+
|
131 |
+
### Slow inference. Long evalutaion compared to training:
|
132 |
+
* Slower inference is an inherent limitation of the sequence-to-sequence architecture.
|
133 |
+
The auto-regressive decoding means that you have to do as many decoder forward passes as tokens generated.
|
134 |
+
* This is much slower than CTC, where you do a single encoder forward pass
|
135 |
+
* Note that 1 evaluation step **will take much longer** than 1 training step, even with the same batch sizes.
|
136 |
+
* With training, we do one forward pass of the encoder, one forward pass of the decoder,
|
137 |
+
one backward pass of the decoder and one backward pass of the encoder (=4 passes total):<br>
|
138 |
+
```
|
139 |
+
audio -> encoder -> decoder -> labels
|
140 |
+
encoder <- decoder <- loss
|
141 |
+
```
|
142 |
+
* During evaluation we do one forward pass of the encoder, and then auto-regressively generate tokens in the decoder.
|
143 |
+
Here, we do as many forward passes of the decoder as tokens generated.
|
144 |
+
So in total, we do one forward pass of the encoder, and N forward passes of the decoder,
|
145 |
+
where N is the number of tokens generated (can be up to the max length, which is 448...).
|
146 |
+
You can see that for 4 or more generated tokens, evaluation is going to be slower than training:<br>
|
147 |
+
```
|
148 |
+
audio -> encoder -> decoder -> decoder -> decoder -> ... -> decoder -> end of sentence token
|
149 |
+
```
|
150 |
+
* I've made a bit of a simplification here in saying that one forward pass
|
151 |
+
takes the same amount of time as one backward pass, but for the purpose of illustrating,
|
152 |
+
this demonstrates the point why evaluation is much slower than training
|
153 |
+
* Essentially it doesn't really matter what you set your eval batch size as we're not aggregating any statistics
|
154 |
+
over the eval batch (in contrast during training we evaluate a true gradient value based on a given batch).
|
155 |
+
* Since we just do a forward pass, we could even run eval with a batch size of 1 and get exactly the same results!
|
156 |
+
* Because we don't get much of an improvement with batch sizes beyond around 8, it's set somewhat arbitrarily
|
157 |
+
|
158 |
+
### Ways to decrease evaluation time during fine-tuning:
|
159 |
+
* reduce `generation_max_length` param:
|
160 |
+
* During training, we can limit the generation max length to a lower number to cut-off the generation
|
161 |
+
after fewer tokens (e.g. 40). This will give worse results during training,
|
162 |
+
but we can still infer the evolution of WER performance over training.
|
163 |
+
* For the final eval step, we can bump up the generation max length back up to 448.
|
164 |
+
* WER performance varies monotonically with generation max length
|
165 |
+
(WER can only stay equal or improve by increasing generation max length),
|
166 |
+
so we know that our final eval WER will be less than (improved) or equal to the WER during training
|
167 |
+
* We can evaluate at less frequent eval_steps: this reduces the number of times we have to perform evaluation
|
168 |
+
|
169 |
+
### Decrease inference time more generally
|
170 |
+
* PyTorch 2.0 and compiling the model could get you a decent speed-up
|
171 |
+
(https://pytorch.org/blog/Accelerating-Hugging-Face-and-TIMM-models/#hugging-face-models)
|
172 |
+
* Downcasting to fp16
|
173 |
+
|
174 |
+
### Memory saving and training larger models:
|
175 |
+
To save memory (and increase either model or batch_size) can experiment with:
|
176 |
+
* using Adafactor instead of Adam.
|
177 |
+
Adam requires two optimiser params per one model param, but Adafactor uses only one.
|
178 |
+
> A word of caution: Adafactor is untested for fine-tuning Whisper,
|
179 |
+
so we are unsure sure how Adafactor performance compares to Adam!
|
180 |
+
* using Adam 8bit from `bitsandbytes` module.
|
181 |
+
need to provide `optim="adamw_bnb_8bit"` param to `Seq2SeqTrainingArguments`
|
182 |
+
* use `deepspeed`. scripts are there in
|
183 |
+
[Whisper fine-tuning Event repo](https://github.com/huggingface/community-events/tree/main/whisper-fine-tuning-event)
|
184 |
+
* load the model and processor in 8bit mode:
|
185 |
+
```python
|
186 |
+
from transformers import WhisperForConditionalGeneration, WhisperProcessor
|
187 |
+
model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-large", device_map="auto", load_in_8bit=True)
|
188 |
+
processor = WhisperProcessor.from_pretrained("openai/whisper-large", load_in_8bit=True)
|
189 |
+
```
|
190 |
+
inference loop:
|
191 |
+
```python
|
192 |
+
for data in dataset:
|
193 |
+
inputs = processor.feature_extractor(data["audio"]["array"], return_tensors="pt", sampling_rate=16_000).input_features.half().to(device)
|
194 |
+
forced_decoder_ids = processor.get_decoder_prompt_ids(language="en", task="transcribe")
|
195 |
+
predicted_ids = model.generate(inputs, forced_decoder_ids=forced_decoder_ids)
|
196 |
+
text = processor.tokenizer.batch_decode(predicted_ids, skip_special_tokens=True, normalize=False)[0]
|
197 |
+
print(text)
|
198 |
+
```
|
199 |
+
* 8bit will slower iference compared to full/half-precision
|
200 |
+
* But the memory saving you get is immense (up to 4x vs full-precision).<br>
|
201 |
+
This is the recommended approach when you're limited on VRAM.<br>
|
202 |
+
If you care about inference speed, still to full precision
|
203 |
+
|
204 |
+
### Prepended tokens
|
205 |
+
* Why are there following lines in Data Collator?
|
206 |
+
```python
|
207 |
+
# if bos token is appended in previous tokenization step,
|
208 |
+
# cut bos token here as it's append later anyways
|
209 |
+
if (labels[:, 0] == self.decoder_start_token_id).all().cpu().item():
|
210 |
+
labels = labels[:, 1:]
|
211 |
+
```
|
212 |
+
* `tokenizer.bos_token_id` vs `model.config.decoder_start_token_id`.<br>
|
213 |
+
which one to pass to Data Collator as `decoder_start_token_id` parameter?
|
214 |
+
* Answer:
|
215 |
+
* In this case, the two are equivalent. You can verify this:
|
216 |
+
```python
|
217 |
+
print(tokenizer.bos_token_id)
|
218 |
+
print(model.config.decoder_start_token_id)
|
219 |
+
```
|
220 |
+
|
221 |
+
* Print Output:
|
222 |
+
```
|
223 |
+
<|startoftranscript|>
|
224 |
+
<|startoftranscript|>
|
225 |
+
```
|
226 |
+
|
227 |
+
* Technically speaking, the decoder_start_token_id is the correct convention here. Before starting generating any tokens, we initialise the generate method with a starting token, which is the decoder_start_token_id.
|
228 |
+
See: https://huggingface.co/blog/how-to-generate. The decoder_start_token_id corresponds to the initial context word sequence, and is the zero'th token generated.
|
229 |
+
|
230 |
+
* We remove this token from the encoded labels in the data collator because we always set the zero'th generated token to the decoder_start_token_id. If we leave the decoder_start_token_id as part of the label sequence, then we'll predict the decoder_start_token_id as the zero'th token, and again as the first token! Because we're always forcing it as the zero'th token, we don't need to predict it as the first token, and so we remove it from the target lables
|
231 |
+
|
232 |
+
* These tokens are not forced in the generation process, and so we don't cut them in the data collator. We need to provide them to the model as target labels so that the model can learn the correct tasks from our data
|
233 |
+
|
234 |
+
* The tokens correspond to the audio language, task (translate or transcribe) and whether to predict timestamps
|
235 |
+
|
236 |
+
* We need to tell the model what language the audio corresponds to and what task it's performing during fine-tuning. This way, it learns what audio corresponds to what language, and the difference between transcribing audio vs translating it
|
237 |
+
|
238 |
+
|
src/requirements.txt
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
torch>=1.7
|
2 |
+
torchaudio
|
3 |
+
git+https://github.com/huggingface/transformers
|
4 |
+
git+https://github.com/huggingface/datasets
|
5 |
+
librosa
|
6 |
+
jiwer
|
7 |
+
evaluate>=0.3.0
|
8 |
+
more-itertools
|
9 |
+
tensorboard
|
src/run_base.sh
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python src/run_speech_recognition_seq2seq_streaming.py \
|
2 |
+
--model_name_or_path="openai/whisper-base" \
|
3 |
+
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
+
--dataset_config_name="be" \
|
5 |
+
--language="be" \
|
6 |
+
--train_split_name="train" \
|
7 |
+
--eval_split_name="validation" \
|
8 |
+
--model_index_name="Whisper Base Belarusian" \
|
9 |
+
\
|
10 |
+
--max_steps="6000" \
|
11 |
+
--output_dir="./" \
|
12 |
+
--per_device_train_batch_size="64" \
|
13 |
+
--per_device_eval_batch_size="32" \
|
14 |
+
--logging_steps="50" \
|
15 |
+
--logging_first_step \
|
16 |
+
--learning_rate="1e-4" \
|
17 |
+
--warmup_steps="500" \
|
18 |
+
--evaluation_strategy="steps" \
|
19 |
+
--eval_steps="1000" \
|
20 |
+
--save_strategy="steps" \
|
21 |
+
--save_steps="1000" \
|
22 |
+
--gradient_checkpointing \
|
23 |
+
--fp16 \
|
24 |
+
\
|
25 |
+
--shuffle_buffer_size="500" \
|
26 |
+
--generation_max_length="225" \
|
27 |
+
--max_duration_in_seconds="30" \
|
28 |
+
--text_column_name="sentence" \
|
29 |
+
--freeze_feature_encoder="False" \
|
30 |
+
--report_to="tensorboard" \
|
31 |
+
--metric_for_best_model="wer" \
|
32 |
+
--greater_is_better="False" \
|
33 |
+
--load_best_model_at_end \
|
34 |
+
\
|
35 |
+
--do_train \
|
36 |
+
--do_eval \
|
37 |
+
--ignore_data_skip \
|
38 |
+
--predict_with_generate \
|
39 |
+
--do_normalize_eval \
|
40 |
+
--streaming_train="True" \
|
41 |
+
--streaming_eval="False" \
|
42 |
+
--use_auth_token \
|
43 |
+
--push_to_hub \
|
44 |
+
--hub_model_id="ales/whisper-base-belarusian"
|
src/run_small.sh
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python src/run_speech_recognition_seq2seq_streaming.py \
|
2 |
+
--model_name_or_path="openai/whisper-small" \
|
3 |
+
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
+
--dataset_config_name="be" \
|
5 |
+
--language="be" \
|
6 |
+
--train_split_name="train" \
|
7 |
+
--eval_split_name="validation" \
|
8 |
+
--model_index_name="Whisper Small Belarusian" \
|
9 |
+
\
|
10 |
+
--max_steps="12000" \
|
11 |
+
--output_dir="./" \
|
12 |
+
--per_device_train_batch_size="64" \
|
13 |
+
--per_device_eval_batch_size="64" \
|
14 |
+
--logging_steps="50" \
|
15 |
+
--logging_first_step \
|
16 |
+
--learning_rate="1e-4" \
|
17 |
+
--warmup_steps="500" \
|
18 |
+
--evaluation_strategy="steps" \
|
19 |
+
--eval_steps="1000" \
|
20 |
+
--save_strategy="steps" \
|
21 |
+
--save_steps="1000" \
|
22 |
+
--gradient_checkpointing \
|
23 |
+
--fp16 \
|
24 |
+
\
|
25 |
+
--shuffle_buffer_size="500" \
|
26 |
+
--generation_max_length="225" \
|
27 |
+
--max_duration_in_seconds="30" \
|
28 |
+
--text_column_name="sentence" \
|
29 |
+
--freeze_feature_encoder="False" \
|
30 |
+
--report_to="tensorboard" \
|
31 |
+
--metric_for_best_model="wer" \
|
32 |
+
--greater_is_better="False" \
|
33 |
+
--load_best_model_at_end \
|
34 |
+
\
|
35 |
+
--do_train \
|
36 |
+
--do_eval \
|
37 |
+
--ignore_data_skip \
|
38 |
+
--predict_with_generate \
|
39 |
+
--do_normalize_eval \
|
40 |
+
--streaming \
|
41 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python
|
2 |
+
# coding=utf-8
|
3 |
+
# Copyright 2022 The HuggingFace Team. All rights reserved.
|
4 |
+
#
|
5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
# you may not use this file except in compliance with the License.
|
7 |
+
# You may obtain a copy of the License at
|
8 |
+
#
|
9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
#
|
11 |
+
# Unless required by applicable law or agreed to in writing, software
|
12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
# See the License for the specific language governing permissions and
|
15 |
+
# limitations under the License.
|
16 |
+
"""
|
17 |
+
Fine-tuning the library models for sequence to sequence speech recognition
|
18 |
+
with 🤗 Datasets' streaming mode.
|
19 |
+
"""
|
20 |
+
# You can also adapt this script for your own sequence to sequence speech
|
21 |
+
# recognition task. Pointers for this are left as comments.
|
22 |
+
|
23 |
+
import logging
|
24 |
+
import os
|
25 |
+
import sys
|
26 |
+
import datetime
|
27 |
+
import re
|
28 |
+
import regex
|
29 |
+
import unicodedata
|
30 |
+
from dataclasses import dataclass, field
|
31 |
+
from typing import Any, Dict, List, Optional, Union, Iterable
|
32 |
+
|
33 |
+
import datasets
|
34 |
+
import torch
|
35 |
+
from datasets import DatasetDict, IterableDatasetDict, interleave_datasets, load_dataset
|
36 |
+
from torch.utils.data import IterableDataset
|
37 |
+
|
38 |
+
import evaluate
|
39 |
+
import transformers
|
40 |
+
from transformers import (
|
41 |
+
AutoConfig,
|
42 |
+
AutoFeatureExtractor,
|
43 |
+
AutoModelForSpeechSeq2Seq,
|
44 |
+
AutoProcessor,
|
45 |
+
AutoTokenizer,
|
46 |
+
HfArgumentParser,
|
47 |
+
Seq2SeqTrainer,
|
48 |
+
Seq2SeqTrainingArguments,
|
49 |
+
TrainerCallback,
|
50 |
+
set_seed,
|
51 |
+
)
|
52 |
+
from transformers.trainer_pt_utils import IterableDatasetShard
|
53 |
+
from transformers.trainer_utils import get_last_checkpoint, is_main_process
|
54 |
+
from transformers.utils import check_min_version, send_example_telemetry
|
55 |
+
from transformers.utils.versions import require_version
|
56 |
+
|
57 |
+
|
58 |
+
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
|
59 |
+
check_min_version("4.25.0.dev0")
|
60 |
+
|
61 |
+
require_version("datasets>=1.18.2", "To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt")
|
62 |
+
|
63 |
+
logger = logging.getLogger(__name__)
|
64 |
+
|
65 |
+
|
66 |
+
@dataclass
|
67 |
+
class ModelArguments:
|
68 |
+
"""
|
69 |
+
Arguments pertaining to which model/config/tokenizer we are going to fine-tune from.
|
70 |
+
"""
|
71 |
+
|
72 |
+
model_name_or_path: str = field(
|
73 |
+
metadata={"help": "Path to pretrained model or model identifier from huggingface.co/models"}
|
74 |
+
)
|
75 |
+
config_name: Optional[str] = field(
|
76 |
+
default=None, metadata={"help": "Pretrained config name or path if not the same as model_name"}
|
77 |
+
)
|
78 |
+
tokenizer_name: Optional[str] = field(
|
79 |
+
default=None, metadata={"help": "Pretrained tokenizer name or path if not the same as model_name"}
|
80 |
+
)
|
81 |
+
feature_extractor_name: Optional[str] = field(
|
82 |
+
default=None, metadata={"help": "feature extractor name or path if not the same as model_name"}
|
83 |
+
)
|
84 |
+
cache_dir: Optional[str] = field(
|
85 |
+
default=None,
|
86 |
+
metadata={"help": "Where to store the pretrained models downloaded from huggingface.co"},
|
87 |
+
)
|
88 |
+
use_fast_tokenizer: bool = field(
|
89 |
+
default=True,
|
90 |
+
metadata={"help": "Whether to use one of the fast tokenizer (backed by the tokenizers library) or not."},
|
91 |
+
)
|
92 |
+
model_revision: str = field(
|
93 |
+
default="main",
|
94 |
+
metadata={"help": "The specific model version to use (can be a branch name, tag name or commit id)."},
|
95 |
+
)
|
96 |
+
use_auth_token: bool = field(
|
97 |
+
default=False,
|
98 |
+
metadata={
|
99 |
+
"help": (
|
100 |
+
"Will use the token generated when running `huggingface-cli login` (necessary to use this script "
|
101 |
+
"with private models)."
|
102 |
+
)
|
103 |
+
},
|
104 |
+
)
|
105 |
+
freeze_feature_encoder: bool = field(
|
106 |
+
default=True, metadata={"help": "Whether to freeze the feature encoder layers of the model."}
|
107 |
+
)
|
108 |
+
freeze_encoder: bool = field(
|
109 |
+
default=False, metadata={"help": "Whether to freeze the entire encoder of the seq2seq model."}
|
110 |
+
)
|
111 |
+
forced_decoder_ids: List[List[int]] = field(
|
112 |
+
default=None,
|
113 |
+
metadata={
|
114 |
+
"help": (
|
115 |
+
"A list of pairs of integers which indicates a mapping from generation indices to token indices "
|
116 |
+
"that will be forced before sampling. For example, [[0, 123]] means the first generated token "
|
117 |
+
"will always be a token of index 123."
|
118 |
+
)
|
119 |
+
},
|
120 |
+
)
|
121 |
+
suppress_tokens: List[int] = field(
|
122 |
+
default=None, metadata={"help": "A list of tokens that will be suppressed at generation."}
|
123 |
+
)
|
124 |
+
model_index_name: str = field(default=None, metadata={"help": "Pretty name for the model card."})
|
125 |
+
|
126 |
+
|
127 |
+
@dataclass
|
128 |
+
class DataTrainingArguments:
|
129 |
+
"""
|
130 |
+
Arguments pertaining to what data we are going to input our model for training and eval.
|
131 |
+
"""
|
132 |
+
|
133 |
+
dataset_name: str = field(
|
134 |
+
default=None, metadata={"help": "The name of the dataset to use (via the datasets library)."}
|
135 |
+
)
|
136 |
+
dataset_config_name: Optional[str] = field(
|
137 |
+
default=None, metadata={"help": "The configuration name of the dataset to use (via the datasets library)."}
|
138 |
+
)
|
139 |
+
max_train_samples: Optional[int] = field(
|
140 |
+
default=None,
|
141 |
+
metadata={
|
142 |
+
"help": (
|
143 |
+
"For debugging purposes or quicker training, truncate the number of training examples to this "
|
144 |
+
"value if set."
|
145 |
+
)
|
146 |
+
},
|
147 |
+
)
|
148 |
+
max_eval_samples: Optional[int] = field(
|
149 |
+
default=None,
|
150 |
+
metadata={
|
151 |
+
"help": (
|
152 |
+
"For debugging purposes or quicker training, truncate the number of evaluation examples to this "
|
153 |
+
"value if set."
|
154 |
+
)
|
155 |
+
},
|
156 |
+
)
|
157 |
+
audio_column_name: str = field(
|
158 |
+
default="audio",
|
159 |
+
metadata={"help": "The name of the dataset column containing the audio data. Defaults to 'audio'"},
|
160 |
+
)
|
161 |
+
text_column_name: str = field(
|
162 |
+
default="text",
|
163 |
+
metadata={"help": "The name of the dataset column containing the text data. Defaults to 'text'"},
|
164 |
+
)
|
165 |
+
max_duration_in_seconds: float = field(
|
166 |
+
default=20.0,
|
167 |
+
metadata={
|
168 |
+
"help": (
|
169 |
+
"Truncate audio files that are longer than `max_duration_in_seconds` seconds to"
|
170 |
+
" 'max_duration_in_seconds`"
|
171 |
+
)
|
172 |
+
},
|
173 |
+
)
|
174 |
+
min_duration_in_seconds: float = field(
|
175 |
+
default=0.0, metadata={"help": "Filter audio files that are shorter than `min_duration_in_seconds` seconds"}
|
176 |
+
)
|
177 |
+
train_split_name: str = field(
|
178 |
+
default="train",
|
179 |
+
metadata={
|
180 |
+
"help": "The name of the training data set split to use (via the datasets library). Defaults to 'train'"
|
181 |
+
},
|
182 |
+
)
|
183 |
+
eval_split_name: str = field(
|
184 |
+
default="test",
|
185 |
+
metadata={
|
186 |
+
"help": "The name of the training data set split to use (via the datasets library). Defaults to 'train'"
|
187 |
+
},
|
188 |
+
)
|
189 |
+
do_lower_case: bool = field(
|
190 |
+
default=False,
|
191 |
+
metadata={"help": "Whether the target text should be lower cased."},
|
192 |
+
)
|
193 |
+
do_remove_punctuation: bool = field(
|
194 |
+
default=False,
|
195 |
+
metadata={"help": "Whether the target text should be striped of punctuation."},
|
196 |
+
)
|
197 |
+
do_normalize_eval: bool = field(
|
198 |
+
default=True,
|
199 |
+
metadata={"help": "Whether to normalise the references and predictions in the eval WER calculation."},
|
200 |
+
)
|
201 |
+
language: str = field(
|
202 |
+
default=None,
|
203 |
+
metadata={
|
204 |
+
"help": (
|
205 |
+
"Language for multilingual fine-tuning. This argument should be set for multilingual fine-tuning "
|
206 |
+
"only. For English speech recognition, it should be set to `None`."
|
207 |
+
)
|
208 |
+
},
|
209 |
+
)
|
210 |
+
task: str = field(
|
211 |
+
default="transcribe",
|
212 |
+
metadata={"help": "Task, either `transcribe` for speech recognition or `translate` for speech translation."},
|
213 |
+
)
|
214 |
+
shuffle_buffer_size: Optional[int] = field(
|
215 |
+
default=500,
|
216 |
+
metadata={
|
217 |
+
"help": (
|
218 |
+
"The number of streamed examples to download before shuffling them. The large the buffer, "
|
219 |
+
"the closer it is to real offline shuffling."
|
220 |
+
)
|
221 |
+
},
|
222 |
+
)
|
223 |
+
streaming_train: bool = field(
|
224 |
+
default=True,
|
225 |
+
metadata={"help": "Whether to use streaming mode to load and pre-process the train split."},
|
226 |
+
)
|
227 |
+
streaming_eval: bool = field(
|
228 |
+
default=True,
|
229 |
+
metadata={"help": "Whether to use streaming mode to load and pre-process the evaluation split."},
|
230 |
+
)
|
231 |
+
|
232 |
+
|
233 |
+
class BelarusianTextNormalizer:
|
234 |
+
"""
|
235 |
+
Based on transformers.models.whisper.english_normalizer.BasicTextNormalizer
|
236 |
+
but with support not to remove certain characters.
|
237 |
+
e.g. apostrophe (') - a symbol from Belarusian alphabet - was removed using BasicTextNormalizer.
|
238 |
+
"""
|
239 |
+
|
240 |
+
def __init__(self, split_letters: bool = False):
|
241 |
+
self.split_letters = split_letters
|
242 |
+
self.allowed_symbols = ("'",)
|
243 |
+
|
244 |
+
@staticmethod
|
245 |
+
def clean(s: str, allowed_symbols: Iterable[str] = None):
|
246 |
+
"""
|
247 |
+
Replace any other markers, symbols, punctuations with a space, keeping diacritics
|
248 |
+
"""
|
249 |
+
if allowed_symbols is None:
|
250 |
+
allowed_symbols = []
|
251 |
+
res = "".join(" " if unicodedata.category(c)[0] in "MSP" and c not in allowed_symbols else c
|
252 |
+
for c in unicodedata.normalize("NFKC", s))
|
253 |
+
return res
|
254 |
+
|
255 |
+
def __call__(self, s: str):
|
256 |
+
s = s.lower()
|
257 |
+
s = re.sub(r"[<\[][^>\]]*[>\]]", "", s) # remove words between brackets
|
258 |
+
s = re.sub(r"\(([^)]+?)\)", "", s) # remove words between parenthesis
|
259 |
+
s = self.clean(s, allowed_symbols=self.allowed_symbols).lower()
|
260 |
+
|
261 |
+
if self.split_letters:
|
262 |
+
s = " ".join(regex.findall(r"\X", s, regex.U))
|
263 |
+
|
264 |
+
s = re.sub(r"\s+", " ", s) # replace any successive whitespace characters with a space
|
265 |
+
|
266 |
+
return s
|
267 |
+
|
268 |
+
|
269 |
+
@dataclass
|
270 |
+
class DataCollatorSpeechSeq2SeqWithPadding:
|
271 |
+
"""
|
272 |
+
Data collator that will dynamically pad the inputs received.
|
273 |
+
Args:
|
274 |
+
processor ([`WhisperProcessor`])
|
275 |
+
The processor used for processing the data.
|
276 |
+
decoder_start_token_id (`int`)
|
277 |
+
The begin-of-sentence of the decoder.
|
278 |
+
"""
|
279 |
+
|
280 |
+
processor: Any
|
281 |
+
decoder_start_token_id: int
|
282 |
+
|
283 |
+
def __call__(self, features: List[Dict[str, Union[List[int], torch.Tensor]]]) -> Dict[str, torch.Tensor]:
|
284 |
+
# split inputs and labels since they have to be of different lengths and need
|
285 |
+
# different padding methods
|
286 |
+
model_input_name = self.processor.model_input_names[0]
|
287 |
+
input_features = [{model_input_name: feature[model_input_name]} for feature in features]
|
288 |
+
label_features = [{"input_ids": feature["labels"]} for feature in features]
|
289 |
+
|
290 |
+
batch = self.processor.feature_extractor.pad(input_features, return_tensors="pt")
|
291 |
+
|
292 |
+
labels_batch = self.processor.tokenizer.pad(label_features, return_tensors="pt")
|
293 |
+
|
294 |
+
# replace padding with -100 to ignore loss correctly
|
295 |
+
labels = labels_batch["input_ids"].masked_fill(labels_batch.attention_mask.ne(1), -100)
|
296 |
+
|
297 |
+
# if bos token is appended in previous tokenization step,
|
298 |
+
# cut bos token here as it's append later anyways
|
299 |
+
if (labels[:, 0] == self.decoder_start_token_id).all().cpu().item():
|
300 |
+
labels = labels[:, 1:]
|
301 |
+
|
302 |
+
batch["labels"] = labels
|
303 |
+
|
304 |
+
return batch
|
305 |
+
|
306 |
+
|
307 |
+
def load_maybe_streaming_dataset(dataset_name, dataset_config_name, split="train", streaming=True, **kwargs):
|
308 |
+
"""
|
309 |
+
Utility function to load a dataset in streaming mode. For datasets with multiple splits,
|
310 |
+
each split is loaded individually and then splits combined by taking alternating examples from
|
311 |
+
each (interleaving).
|
312 |
+
"""
|
313 |
+
if "+" in split:
|
314 |
+
# load multiple splits separated by the `+` symbol with streaming mode
|
315 |
+
dataset_splits = [
|
316 |
+
load_dataset(dataset_name, dataset_config_name, split=split_name, streaming=streaming, **kwargs)
|
317 |
+
for split_name in split.split("+")
|
318 |
+
]
|
319 |
+
# interleave multiple splits to form one dataset
|
320 |
+
interleaved_dataset = interleave_datasets(dataset_splits)
|
321 |
+
return interleaved_dataset
|
322 |
+
else:
|
323 |
+
# load a single split *with* streaming mode
|
324 |
+
dataset = load_dataset(dataset_name, dataset_config_name, split=split, streaming=streaming, **kwargs)
|
325 |
+
return dataset
|
326 |
+
|
327 |
+
|
328 |
+
def main():
|
329 |
+
# 1. Parse input arguments
|
330 |
+
# See all possible arguments in src/transformers/training_args.py
|
331 |
+
# or by passing the --help flag to this script.
|
332 |
+
# We now keep distinct sets of args, for a cleaner separation of concerns.
|
333 |
+
parser = HfArgumentParser((ModelArguments, DataTrainingArguments, Seq2SeqTrainingArguments))
|
334 |
+
|
335 |
+
if len(sys.argv) == 2 and sys.argv[1].endswith(".json"):
|
336 |
+
# If we pass only one argument to the script and it's the path to a json file,
|
337 |
+
# let's parse it to get our arguments.
|
338 |
+
model_args, data_args, training_args = parser.parse_json_file(json_file=os.path.abspath(sys.argv[1]))
|
339 |
+
else:
|
340 |
+
model_args, data_args, training_args = parser.parse_args_into_dataclasses()
|
341 |
+
|
342 |
+
|
343 |
+
# 2. Setup logging
|
344 |
+
now_str = datetime.datetime.now().strftime('%Y%m%d-%H%M%S')
|
345 |
+
logging.basicConfig(
|
346 |
+
format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
|
347 |
+
datefmt="%m/%d/%Y %H:%M:%S",
|
348 |
+
handlers=[
|
349 |
+
logging.StreamHandler(sys.stdout),
|
350 |
+
logging.FileHandler(filename=f'train_{now_str}.log', mode='w')
|
351 |
+
],
|
352 |
+
)
|
353 |
+
log_level = training_args.get_process_log_level()
|
354 |
+
logger.setLevel(log_level)
|
355 |
+
datasets.utils.logging.set_verbosity(log_level)
|
356 |
+
transformers.utils.logging.set_verbosity(log_level)
|
357 |
+
transformers.utils.logging.enable_default_handler()
|
358 |
+
transformers.utils.logging.enable_explicit_format()
|
359 |
+
|
360 |
+
logger.setLevel(logging.INFO if is_main_process(training_args.local_rank) else logging.WARN)
|
361 |
+
|
362 |
+
# Log on each process the small summary:
|
363 |
+
logger.warning(
|
364 |
+
f"Process rank: {training_args.local_rank}, device: {training_args.device}, n_gpu: {training_args.n_gpu}"
|
365 |
+
f"distributed training: {bool(training_args.local_rank != -1)}, 16-bits training: {training_args.fp16}"
|
366 |
+
)
|
367 |
+
|
368 |
+
logger.info(f"Training/evaluation parameters {training_args}")
|
369 |
+
logger.info(f"Data parameters: {data_args}")
|
370 |
+
logger.info(f"Model parameters: {model_args}")
|
371 |
+
|
372 |
+
# Set the verbosity to info of the Transformers logger (on main process only):
|
373 |
+
if is_main_process(training_args.local_rank):
|
374 |
+
transformers.utils.logging.set_verbosity_info()
|
375 |
+
|
376 |
+
# 3. Detecting last checkpoint and eventually continue from last checkpoint
|
377 |
+
last_checkpoint = None
|
378 |
+
if os.path.isdir(training_args.output_dir) and training_args.do_train and not training_args.overwrite_output_dir:
|
379 |
+
logger.info(f'output_dir already exists. will try to load last checkpoint.')
|
380 |
+
|
381 |
+
last_checkpoint = get_last_checkpoint(training_args.output_dir)
|
382 |
+
if last_checkpoint is not None:
|
383 |
+
if training_args.resume_from_checkpoint is None:
|
384 |
+
logger.info(
|
385 |
+
f"Checkpoint detected, resuming training at {last_checkpoint}. To avoid this behavior, change "
|
386 |
+
"the `--output_dir` or add `--overwrite_output_dir` to train from scratch."
|
387 |
+
)
|
388 |
+
else:
|
389 |
+
logger.info(f'Last checkpoint found at: {last_checkpoint}. Will ignore it and resume training '
|
390 |
+
f'from passed resume_from_checkpoint param: {training_args.resume_from_checkpoint}')
|
391 |
+
assert os.path.isdir(training_args.resume_from_checkpoint)
|
392 |
+
else:
|
393 |
+
logger.info('last_checkpoint is None. will try to read from training_args.resume_from_checkpoint')
|
394 |
+
|
395 |
+
if training_args.resume_from_checkpoint is not None and os.path.isdir(training_args.resume_from_checkpoint):
|
396 |
+
logger.info(f'Will resume training from passed resume_from_checkpoint param: '
|
397 |
+
f'{training_args.resume_from_checkpoint}')
|
398 |
+
else:
|
399 |
+
logger.info('last_checkpoint is None. resume_from_checkpoint is either None or not existing dir. '
|
400 |
+
'will try to read from the model saved in the root of output_dir.')
|
401 |
+
|
402 |
+
dir_content = os.listdir(training_args.output_dir)
|
403 |
+
if len(dir_content) == 0:
|
404 |
+
logger.info('output_dir is empty. will start training from scratch.')
|
405 |
+
else:
|
406 |
+
model_fn = 'pytorch_model.bin'
|
407 |
+
if model_fn in dir_content:
|
408 |
+
logger.info(f'found {model_fn} inside output_dir. '
|
409 |
+
f'will continue training treating output_dir as a last checkpoint.')
|
410 |
+
last_checkpoint = training_args.output_dir
|
411 |
+
else:
|
412 |
+
allowed_dirs = ['.git', '.gitattributes', 'src']
|
413 |
+
unexpected_content = set(dir_content).difference(allowed_dirs)
|
414 |
+
unexpected_content = [x for x in unexpected_content
|
415 |
+
if not x.endswith('.log') and os.path.isfile(x)]
|
416 |
+
if len(unexpected_content) > 0:
|
417 |
+
raise ValueError(
|
418 |
+
f'Could not find last_checkpoint, resume_from_checkpoint is either None '
|
419 |
+
'or not existing dir, output_dir is non-empty but does not contain a model.'
|
420 |
+
'Use --overwrite_output_dir to overcome. '
|
421 |
+
f'unexpected_content: {unexpected_content}'
|
422 |
+
)
|
423 |
+
else:
|
424 |
+
logger.info(f'dir is not empty, but contains only: {dir_content}. '
|
425 |
+
'it is OK - will start training')
|
426 |
+
|
427 |
+
|
428 |
+
# Set seed before initializing model.
|
429 |
+
set_seed(training_args.seed)
|
430 |
+
|
431 |
+
# 4. Load dataset
|
432 |
+
|
433 |
+
# TODO: replace dataset dicts with single key to IterableDataset and to Dataset.
|
434 |
+
# don't know how to do it know - using dict simply because they work.
|
435 |
+
raw_train = IterableDatasetDict() if data_args.streaming_train else DatasetDict()
|
436 |
+
raw_eval = IterableDatasetDict() if data_args.streaming_eval else DatasetDict()
|
437 |
+
|
438 |
+
if training_args.do_train:
|
439 |
+
raw_train['train'] = load_maybe_streaming_dataset(
|
440 |
+
data_args.dataset_name,
|
441 |
+
data_args.dataset_config_name,
|
442 |
+
split=data_args.train_split_name,
|
443 |
+
use_auth_token=True if model_args.use_auth_token else None,
|
444 |
+
streaming=data_args.streaming_train,
|
445 |
+
)
|
446 |
+
|
447 |
+
if training_args.do_eval:
|
448 |
+
raw_eval['eval'] = load_maybe_streaming_dataset(
|
449 |
+
data_args.dataset_name,
|
450 |
+
data_args.dataset_config_name,
|
451 |
+
split=data_args.eval_split_name,
|
452 |
+
use_auth_token=True if model_args.use_auth_token else None,
|
453 |
+
streaming=data_args.streaming_eval,
|
454 |
+
)
|
455 |
+
|
456 |
+
raw_datasets_features = list(next(iter(raw_train.values())).features.keys())
|
457 |
+
|
458 |
+
if data_args.audio_column_name not in raw_datasets_features:
|
459 |
+
raise ValueError(
|
460 |
+
f"--audio_column_name '{data_args.audio_column_name}' not found in dataset '{data_args.dataset_name}'. "
|
461 |
+
"Make sure to set `--audio_column_name` to the correct audio column - one of "
|
462 |
+
f"{', '.join(raw_datasets_features)}."
|
463 |
+
)
|
464 |
+
|
465 |
+
if data_args.text_column_name not in raw_datasets_features:
|
466 |
+
raise ValueError(
|
467 |
+
f"--text_column_name {data_args.text_column_name} not found in dataset '{data_args.dataset_name}'. "
|
468 |
+
"Make sure to set `--text_column_name` to the correct text column - one of "
|
469 |
+
f"{', '.join(raw_datasets_features)}."
|
470 |
+
)
|
471 |
+
|
472 |
+
# 5. Load pretrained model, tokenizer, and feature extractor
|
473 |
+
#
|
474 |
+
# Distributed training:
|
475 |
+
# The .from_pretrained methods guarantee that only one local process can concurrently
|
476 |
+
config = AutoConfig.from_pretrained(
|
477 |
+
model_args.config_name if model_args.config_name else model_args.model_name_or_path,
|
478 |
+
cache_dir=model_args.cache_dir,
|
479 |
+
revision=model_args.model_revision,
|
480 |
+
use_auth_token=True if model_args.use_auth_token else None,
|
481 |
+
)
|
482 |
+
|
483 |
+
config.update({"forced_decoder_ids": model_args.forced_decoder_ids, "suppress_tokens": model_args.suppress_tokens})
|
484 |
+
|
485 |
+
if training_args.gradient_checkpointing:
|
486 |
+
config.update({"use_cache": False})
|
487 |
+
|
488 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained(
|
489 |
+
model_args.feature_extractor_name if model_args.feature_extractor_name else model_args.model_name_or_path,
|
490 |
+
cache_dir=model_args.cache_dir,
|
491 |
+
revision=model_args.model_revision,
|
492 |
+
use_auth_token=True if model_args.use_auth_token else None,
|
493 |
+
)
|
494 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
495 |
+
model_args.tokenizer_name if model_args.tokenizer_name else model_args.model_name_or_path,
|
496 |
+
cache_dir=model_args.cache_dir,
|
497 |
+
use_fast=model_args.use_fast_tokenizer,
|
498 |
+
revision=model_args.model_revision,
|
499 |
+
use_auth_token=True if model_args.use_auth_token else None,
|
500 |
+
)
|
501 |
+
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
502 |
+
model_args.model_name_or_path,
|
503 |
+
config=config,
|
504 |
+
cache_dir=model_args.cache_dir,
|
505 |
+
revision=model_args.model_revision,
|
506 |
+
use_auth_token=True if model_args.use_auth_token else None,
|
507 |
+
)
|
508 |
+
|
509 |
+
if model.config.decoder_start_token_id is None:
|
510 |
+
raise ValueError("Make sure that `config.decoder_start_token_id` is correctly defined")
|
511 |
+
|
512 |
+
if model_args.freeze_feature_encoder:
|
513 |
+
model.freeze_feature_encoder()
|
514 |
+
|
515 |
+
if model_args.freeze_encoder:
|
516 |
+
model.freeze_encoder()
|
517 |
+
|
518 |
+
if data_args.language is not None:
|
519 |
+
# We only need to set the task id when the language is specified (i.e. in a multilingual setting)
|
520 |
+
tokenizer.set_prefix_tokens(language=data_args.language, task=data_args.task)
|
521 |
+
|
522 |
+
# 6. Explicitly resample speech dataset
|
523 |
+
raw_train = raw_train.cast_column(
|
524 |
+
data_args.audio_column_name, datasets.features.Audio(
|
525 |
+
sampling_rate=feature_extractor.sampling_rate,
|
526 |
+
mono=True
|
527 |
+
)
|
528 |
+
)
|
529 |
+
raw_eval = raw_eval.cast_column(
|
530 |
+
data_args.audio_column_name, datasets.features.Audio(
|
531 |
+
sampling_rate=feature_extractor.sampling_rate,
|
532 |
+
mono=True
|
533 |
+
)
|
534 |
+
)
|
535 |
+
|
536 |
+
# 7. Preprocessing the datasets.
|
537 |
+
# We need to read the audio files as arrays and tokenize the targets.
|
538 |
+
max_input_length = data_args.max_duration_in_seconds * feature_extractor.sampling_rate
|
539 |
+
min_input_length = data_args.min_duration_in_seconds * feature_extractor.sampling_rate
|
540 |
+
max_labels_length = 448 # model.config.max_length
|
541 |
+
|
542 |
+
audio_column_name = data_args.audio_column_name
|
543 |
+
text_column_name = data_args.text_column_name
|
544 |
+
model_input_name = feature_extractor.model_input_names[0]
|
545 |
+
do_lower_case = data_args.do_lower_case
|
546 |
+
do_remove_punctuation = data_args.do_remove_punctuation
|
547 |
+
normalizer = BelarusianTextNormalizer() # custom normalizer based on 'official' text normalizer from OpenAI
|
548 |
+
|
549 |
+
if data_args.max_train_samples is not None:
|
550 |
+
raw_train['train'] = (
|
551 |
+
raw_train['train'].take(data_args.max_train_samples)
|
552 |
+
if data_args.streaming_train
|
553 |
+
else raw_train['train'].select(range(data_args.max_train_samples))
|
554 |
+
)
|
555 |
+
|
556 |
+
if data_args.max_eval_samples is not None:
|
557 |
+
raw_eval['eval'] = (
|
558 |
+
raw_eval['eval'].take(data_args.max_eval_samples)
|
559 |
+
if data_args.streaming_eval
|
560 |
+
else raw_eval['eval'].select(range(data_args.max_eval_samples))
|
561 |
+
)
|
562 |
+
|
563 |
+
def prepare_dataset(sample, labels_max_len: int = None):
|
564 |
+
# process audio
|
565 |
+
audio = sample[audio_column_name]
|
566 |
+
inputs = feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"])
|
567 |
+
# process audio length
|
568 |
+
sample[model_input_name] = inputs.get(model_input_name)[0]
|
569 |
+
sample["input_length"] = len(audio["array"])
|
570 |
+
|
571 |
+
# process targets
|
572 |
+
input_str = sample[text_column_name].lower() if do_lower_case else sample[text_column_name]
|
573 |
+
if do_remove_punctuation:
|
574 |
+
input_str = normalizer(input_str).strip()
|
575 |
+
sample['labels'] = tokenizer(input_str).input_ids
|
576 |
+
sample['labels_length'] = len(sample['labels']) # include special characters
|
577 |
+
|
578 |
+
sample['labels_truncated'] = 0
|
579 |
+
# need to truncate validation and test labels that are longer that model.config.max_length.
|
580 |
+
# can't drop such examples because this will affect validation and test scores.
|
581 |
+
# thus need to truncate.
|
582 |
+
if labels_max_len is not None:
|
583 |
+
if len(sample['labels']) > labels_max_len:
|
584 |
+
sample['labels'] = sample['labels'][:labels_max_len]
|
585 |
+
sample['labels_truncated'] = 1
|
586 |
+
|
587 |
+
return sample
|
588 |
+
|
589 |
+
with training_args.main_process_first(desc="dataset map pre-processing"):
|
590 |
+
logger.info(f'vectorizing dataset')
|
591 |
+
|
592 |
+
# TODO: replace dataset dicts with single key to IterableDataset and to Dataset.
|
593 |
+
# don't know how to do it know - using dict simply because they work.
|
594 |
+
vectorized_train = IterableDatasetDict() if data_args.streaming_train else DatasetDict()
|
595 |
+
vectorized_eval = IterableDatasetDict() if data_args.streaming_eval else DatasetDict()
|
596 |
+
|
597 |
+
num_proc = None
|
598 |
+
if data_args.streaming_train or data_args.streaming_eval:
|
599 |
+
logger.info(f'will preprocess data using {num_proc} processes.')
|
600 |
+
|
601 |
+
if data_args.streaming_train:
|
602 |
+
vectorized_train['train'] = raw_train['train'].map(
|
603 |
+
prepare_dataset, remove_columns=raw_datasets_features,
|
604 |
+
fn_kwargs=dict(labels_max_len=None),
|
605 |
+
).with_format("torch")
|
606 |
+
else:
|
607 |
+
vectorized_train['train'] = raw_train['train'].map(
|
608 |
+
prepare_dataset, remove_columns=raw_datasets_features,
|
609 |
+
num_proc=num_proc,
|
610 |
+
fn_kwargs=dict(labels_max_len=None),
|
611 |
+
).with_format("torch")
|
612 |
+
|
613 |
+
if data_args.streaming_eval:
|
614 |
+
vectorized_eval['eval'] = raw_eval['eval'].map(
|
615 |
+
prepare_dataset, remove_columns=raw_datasets_features,
|
616 |
+
fn_kwargs=dict(labels_max_len=max_labels_length),
|
617 |
+
).with_format("torch")
|
618 |
+
else:
|
619 |
+
vectorized_eval['eval'] = raw_eval['eval'].map(
|
620 |
+
prepare_dataset, remove_columns=raw_datasets_features,
|
621 |
+
num_proc=num_proc,
|
622 |
+
fn_kwargs=dict(labels_max_len=max_labels_length),
|
623 |
+
).with_format("torch")
|
624 |
+
|
625 |
+
if training_args.do_train and data_args.streaming_train:
|
626 |
+
# manually shuffle if streaming (done by the trainer for non-streaming)
|
627 |
+
vectorized_train['train'] = vectorized_train['train'].shuffle(
|
628 |
+
buffer_size=data_args.shuffle_buffer_size,
|
629 |
+
seed=training_args.seed,
|
630 |
+
)
|
631 |
+
|
632 |
+
# Filter training data that is shorter than min_input_length or longer than max_input_length.
|
633 |
+
# Drop items with labels longer that max model length.
|
634 |
+
# Drop such items from the train set only. Should keep them in eval set not to affect eval metrics.
|
635 |
+
def is_audio_in_length_range(length):
|
636 |
+
return min_input_length < length < max_input_length
|
637 |
+
|
638 |
+
def are_labels_in_length_range(labels_length):
|
639 |
+
return labels_length <= max_labels_length
|
640 |
+
|
641 |
+
if training_args.do_train:
|
642 |
+
# Filter items from train set only.
|
643 |
+
# Should keep them in eval set not to affect eval metrics.
|
644 |
+
vectorized_train['train'] = vectorized_train['train'].filter(
|
645 |
+
is_audio_in_length_range,
|
646 |
+
input_columns=["input_length"],
|
647 |
+
)
|
648 |
+
vectorized_train['train'] = vectorized_train['train'].filter(
|
649 |
+
are_labels_in_length_range,
|
650 |
+
input_columns=["labels_length"],
|
651 |
+
)
|
652 |
+
|
653 |
+
# 8. Load Metric
|
654 |
+
metric = evaluate.load("wer")
|
655 |
+
do_normalize_eval = data_args.do_normalize_eval
|
656 |
+
|
657 |
+
def compute_metrics(pred):
|
658 |
+
pred_ids = pred.predictions
|
659 |
+
|
660 |
+
pred.label_ids[pred.label_ids == -100] = tokenizer.pad_token_id
|
661 |
+
|
662 |
+
pred_str = tokenizer.batch_decode(pred_ids, skip_special_tokens=True)
|
663 |
+
# we do not want to group tokens when computing the metrics
|
664 |
+
label_str = tokenizer.batch_decode(pred.label_ids, skip_special_tokens=True)
|
665 |
+
|
666 |
+
if do_normalize_eval:
|
667 |
+
pred_str = [normalizer(pred) for pred in pred_str]
|
668 |
+
label_str = [normalizer(label) for label in label_str]
|
669 |
+
# filtering step to only evaluate the samples that correspond to non-zero references:
|
670 |
+
pred_str = [pred_str[i] for i in range(len(pred_str)) if len(label_str[i]) > 0]
|
671 |
+
label_str = [label_str[i] for i in range(len(label_str)) if len(label_str[i]) > 0]
|
672 |
+
|
673 |
+
wer = 100 * metric.compute(predictions=pred_str, references=label_str)
|
674 |
+
|
675 |
+
return {"wer": wer}
|
676 |
+
|
677 |
+
# 9. Create a single speech processor
|
678 |
+
if is_main_process(training_args.local_rank):
|
679 |
+
# save feature extractor, tokenizer and config
|
680 |
+
feature_extractor.save_pretrained(training_args.output_dir)
|
681 |
+
tokenizer.save_pretrained(training_args.output_dir)
|
682 |
+
config.save_pretrained(training_args.output_dir)
|
683 |
+
|
684 |
+
processor = AutoProcessor.from_pretrained(training_args.output_dir)
|
685 |
+
|
686 |
+
# 10. Define data collator
|
687 |
+
data_collator = DataCollatorSpeechSeq2SeqWithPadding(
|
688 |
+
processor=processor,
|
689 |
+
decoder_start_token_id=model.config.decoder_start_token_id,
|
690 |
+
)
|
691 |
+
|
692 |
+
# 11. Configure Trainer
|
693 |
+
# Trainer callback to reinitialise and reshuffle the streamable datasets at the beginning of each epoch
|
694 |
+
# Only required for streaming: Trainer automatically shuffles non-streaming datasets
|
695 |
+
class ShuffleCallback(TrainerCallback):
|
696 |
+
def on_epoch_begin(self, args, state, control, train_dataloader, **kwargs):
|
697 |
+
if isinstance(train_dataloader.dataset, IterableDatasetShard):
|
698 |
+
pass # set_epoch() is handled by the Trainer
|
699 |
+
elif isinstance(train_dataloader.dataset, IterableDataset):
|
700 |
+
logger.info(f'ShuffleCallback. shuffling train dataset. '
|
701 |
+
f'seed: {training_args.seed}. dataset epoch: {train_dataloader.dataset._epoch}')
|
702 |
+
train_dataloader.dataset.set_epoch(train_dataloader.dataset._epoch + 1)
|
703 |
+
|
704 |
+
# Initialize Trainer
|
705 |
+
trainer = Seq2SeqTrainer(
|
706 |
+
model=model,
|
707 |
+
args=training_args,
|
708 |
+
train_dataset=vectorized_train['train'] if training_args.do_train else None,
|
709 |
+
eval_dataset=vectorized_eval['eval'] if training_args.do_eval else None,
|
710 |
+
tokenizer=processor,
|
711 |
+
data_collator=data_collator,
|
712 |
+
compute_metrics=compute_metrics if training_args.predict_with_generate else None,
|
713 |
+
callbacks=[ShuffleCallback()] if data_args.streaming_train else None,
|
714 |
+
)
|
715 |
+
|
716 |
+
# 12. Training
|
717 |
+
if training_args.do_train:
|
718 |
+
checkpoint = None
|
719 |
+
if training_args.resume_from_checkpoint is not None:
|
720 |
+
checkpoint = training_args.resume_from_checkpoint
|
721 |
+
elif last_checkpoint is not None:
|
722 |
+
checkpoint = last_checkpoint
|
723 |
+
train_result = trainer.train(resume_from_checkpoint=checkpoint)
|
724 |
+
trainer.save_model() # Saves the feature extractor too for easy upload
|
725 |
+
|
726 |
+
metrics = train_result.metrics
|
727 |
+
if data_args.max_train_samples:
|
728 |
+
metrics["train_samples"] = data_args.max_train_samples
|
729 |
+
trainer.log_metrics("train", metrics)
|
730 |
+
trainer.save_metrics("train", metrics)
|
731 |
+
trainer.save_state()
|
732 |
+
|
733 |
+
# 13. Evaluation
|
734 |
+
results = {}
|
735 |
+
if training_args.do_eval:
|
736 |
+
logger.info("*** Evaluate ***")
|
737 |
+
metrics = trainer.evaluate(
|
738 |
+
metric_key_prefix="eval",
|
739 |
+
max_length=training_args.generation_max_length,
|
740 |
+
num_beams=training_args.generation_num_beams,
|
741 |
+
)
|
742 |
+
if data_args.max_eval_samples:
|
743 |
+
metrics["eval_samples"] = data_args.max_eval_samples
|
744 |
+
|
745 |
+
trainer.log_metrics("eval", metrics)
|
746 |
+
trainer.save_metrics("eval", metrics)
|
747 |
+
|
748 |
+
# 14. Write Training Stats
|
749 |
+
kwargs = {
|
750 |
+
"finetuned_from": model_args.model_name_or_path,
|
751 |
+
"tasks": "automatic-speech-recognition",
|
752 |
+
"tags": "whisper-event",
|
753 |
+
}
|
754 |
+
if data_args.dataset_name is not None:
|
755 |
+
kwargs["dataset_tags"] = data_args.dataset_name
|
756 |
+
if data_args.dataset_config_name is not None:
|
757 |
+
kwargs["dataset"] = f"{data_args.dataset_name} {data_args.dataset_config_name}"
|
758 |
+
else:
|
759 |
+
kwargs["dataset"] = data_args.dataset_name
|
760 |
+
if "common_voice" in data_args.dataset_name:
|
761 |
+
kwargs["language"] = data_args.dataset_config_name[:2]
|
762 |
+
if model_args.model_index_name is not None:
|
763 |
+
kwargs["model_name"] = model_args.model_index_name
|
764 |
+
|
765 |
+
if training_args.push_to_hub:
|
766 |
+
trainer.push_to_hub(**kwargs)
|
767 |
+
else:
|
768 |
+
trainer.create_model_card(**kwargs)
|
769 |
+
|
770 |
+
return results
|
771 |
+
|
772 |
+
|
773 |
+
if __name__ == "__main__":
|
774 |
+
main()
|
src/run_tiny_debug.sh
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python src/run_speech_recognition_seq2seq_streaming.py \
|
2 |
+
--model_name_or_path="openai/whisper-tiny" \
|
3 |
+
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
+
--dataset_config_name="be" \
|
5 |
+
--language="be" \
|
6 |
+
--train_split_name="train" \
|
7 |
+
--eval_split_name="validation" \
|
8 |
+
--model_index_name="Whisper Tiny Belarusian" \
|
9 |
+
\
|
10 |
+
--max_steps="500" \
|
11 |
+
--max_eval_samples="64" \
|
12 |
+
--output_dir="./" \
|
13 |
+
--per_device_train_batch_size="32" \
|
14 |
+
--per_device_eval_batch_size="32" \
|
15 |
+
--logging_steps="10" \
|
16 |
+
--logging_first_step \
|
17 |
+
--learning_rate="1e-4" \
|
18 |
+
--warmup_steps="10" \
|
19 |
+
--evaluation_strategy="steps" \
|
20 |
+
--eval_steps="10" \
|
21 |
+
--save_strategy="steps" \
|
22 |
+
--save_steps="10" \
|
23 |
+
--gradient_checkpointing \
|
24 |
+
--fp16 \
|
25 |
+
\
|
26 |
+
--shuffle_buffer_size="20" \
|
27 |
+
--generation_max_length="225" \
|
28 |
+
--max_duration_in_seconds="30" \
|
29 |
+
--text_column_name="sentence" \
|
30 |
+
--freeze_feature_encoder="False" \
|
31 |
+
--report_to="tensorboard" \
|
32 |
+
--metric_for_best_model="wer" \
|
33 |
+
--greater_is_better="False" \
|
34 |
+
--load_best_model_at_end \
|
35 |
+
\
|
36 |
+
--do_train \
|
37 |
+
--do_eval \
|
38 |
+
--ignore_data_skip \
|
39 |
+
--predict_with_generate \
|
40 |
+
--do_normalize_eval \
|
41 |
+
--streaming \
|
42 |
+
--use_auth_token \
|
43 |
+
--push_to_hub \
|
44 |
+
--hub_model_id="ales/whisper-tiny-be-test"
|
src/setup_env.sh
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
sudo add-apt-repository -y ppa:jonathonf/ffmpeg-4
|
2 |
+
sudo apt update
|
3 |
+
sudo apt install -y ffmpeg
|
4 |
+
|
5 |
+
sudo apt-get install git-lfs
|
6 |
+
|
7 |
+
sudo apt-get install tmux
|
8 |
+
|
9 |
+
cd ~
|
10 |
+
echo "executing env setup from $(pwd)"
|
11 |
+
|
12 |
+
python3 -m venv ~/python_venvs/hf_env
|
13 |
+
source ~/python_venvs/hf_env/bin/activate
|
14 |
+
echo "source ~/python_venvs/hf_env/bin/activate" >> ~/.bashrc
|
15 |
+
|
16 |
+
git clone https://github.com/yks72p/whisper-finetuning-be
|
17 |
+
pip install -r ~/whisper-finetuning-be/requirements.txt
|
18 |
+
|
19 |
+
git config --global credential.helper store
|
20 |
+
huggingface-cli login
|
21 |
+
|
22 |
+
echo "env setup"
|
23 |
+
echo "! PLEASE LOGIN INTO GIT TO BE ABLE TO PUSH TO HF HUB !"
|
24 |
+
echo "> git config --globase user.name <user_name>"
|
25 |
+
echo "> git config --globase user.email <user_email>"
|
tokenizer_config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<|endoftext|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"eos_token": {
|
13 |
+
"__type": "AddedToken",
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"errors": "replace",
|
21 |
+
"model_max_length": 448,
|
22 |
+
"name_or_path": "./",
|
23 |
+
"pad_token": null,
|
24 |
+
"processor_class": "WhisperProcessor",
|
25 |
+
"return_attention_mask": false,
|
26 |
+
"special_tokens_map_file": null,
|
27 |
+
"tokenizer_class": "WhisperTokenizer",
|
28 |
+
"trust_remote_code": false,
|
29 |
+
"unk_token": {
|
30 |
+
"__type": "AddedToken",
|
31 |
+
"content": "",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
train_20221217-004912.log
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
12/17/2022 00:49:12 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1distributed training: False, 16-bits training: True
|
2 |
+
12/17/2022 00:49:12 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments(
|
3 |
+
_n_gpu=1,
|
4 |
+
adafactor=False,
|
5 |
+
adam_beta1=0.9,
|
6 |
+
adam_beta2=0.999,
|
7 |
+
adam_epsilon=1e-08,
|
8 |
+
auto_find_batch_size=False,
|
9 |
+
bf16=False,
|
10 |
+
bf16_full_eval=False,
|
11 |
+
data_seed=None,
|
12 |
+
dataloader_drop_last=False,
|
13 |
+
dataloader_num_workers=0,
|
14 |
+
dataloader_pin_memory=True,
|
15 |
+
ddp_bucket_cap_mb=None,
|
16 |
+
ddp_find_unused_parameters=None,
|
17 |
+
ddp_timeout=1800,
|
18 |
+
debug=[],
|
19 |
+
deepspeed=None,
|
20 |
+
disable_tqdm=False,
|
21 |
+
do_eval=True,
|
22 |
+
do_predict=False,
|
23 |
+
do_train=True,
|
24 |
+
eval_accumulation_steps=None,
|
25 |
+
eval_delay=0,
|
26 |
+
eval_steps=1000,
|
27 |
+
evaluation_strategy=steps,
|
28 |
+
fp16=True,
|
29 |
+
fp16_backend=auto,
|
30 |
+
fp16_full_eval=False,
|
31 |
+
fp16_opt_level=O1,
|
32 |
+
fsdp=[],
|
33 |
+
fsdp_min_num_params=0,
|
34 |
+
fsdp_transformer_layer_cls_to_wrap=None,
|
35 |
+
full_determinism=False,
|
36 |
+
generation_max_length=225,
|
37 |
+
generation_num_beams=None,
|
38 |
+
gradient_accumulation_steps=1,
|
39 |
+
gradient_checkpointing=True,
|
40 |
+
greater_is_better=False,
|
41 |
+
group_by_length=False,
|
42 |
+
half_precision_backend=auto,
|
43 |
+
hub_model_id=ales/whisper-base-belarusian,
|
44 |
+
hub_private_repo=False,
|
45 |
+
hub_strategy=every_save,
|
46 |
+
hub_token=<HUB_TOKEN>,
|
47 |
+
ignore_data_skip=True,
|
48 |
+
include_inputs_for_metrics=False,
|
49 |
+
jit_mode_eval=False,
|
50 |
+
label_names=None,
|
51 |
+
label_smoothing_factor=0.0,
|
52 |
+
learning_rate=0.0001,
|
53 |
+
length_column_name=length,
|
54 |
+
load_best_model_at_end=True,
|
55 |
+
local_rank=-1,
|
56 |
+
log_level=passive,
|
57 |
+
log_level_replica=passive,
|
58 |
+
log_on_each_node=True,
|
59 |
+
logging_dir=./runs/Dec17_00-49-12_129-213-88-66,
|
60 |
+
logging_first_step=True,
|
61 |
+
logging_nan_inf_filter=True,
|
62 |
+
logging_steps=50,
|
63 |
+
logging_strategy=steps,
|
64 |
+
lr_scheduler_type=linear,
|
65 |
+
max_grad_norm=1.0,
|
66 |
+
max_steps=6000,
|
67 |
+
metric_for_best_model=wer,
|
68 |
+
mp_parameters=,
|
69 |
+
no_cuda=False,
|
70 |
+
num_train_epochs=3.0,
|
71 |
+
optim=adamw_hf,
|
72 |
+
optim_args=None,
|
73 |
+
output_dir=./,
|
74 |
+
overwrite_output_dir=False,
|
75 |
+
past_index=-1,
|
76 |
+
per_device_eval_batch_size=32,
|
77 |
+
per_device_train_batch_size=64,
|
78 |
+
predict_with_generate=True,
|
79 |
+
prediction_loss_only=False,
|
80 |
+
push_to_hub=True,
|
81 |
+
push_to_hub_model_id=None,
|
82 |
+
push_to_hub_organization=None,
|
83 |
+
push_to_hub_token=<PUSH_TO_HUB_TOKEN>,
|
84 |
+
ray_scope=last,
|
85 |
+
remove_unused_columns=True,
|
86 |
+
report_to=['tensorboard'],
|
87 |
+
resume_from_checkpoint=None,
|
88 |
+
run_name=./,
|
89 |
+
save_on_each_node=False,
|
90 |
+
save_steps=1000,
|
91 |
+
save_strategy=steps,
|
92 |
+
save_total_limit=None,
|
93 |
+
seed=42,
|
94 |
+
sharded_ddp=[],
|
95 |
+
skip_memory_metrics=True,
|
96 |
+
sortish_sampler=False,
|
97 |
+
tf32=None,
|
98 |
+
torch_compile=False,
|
99 |
+
torch_compile_backend=None,
|
100 |
+
torch_compile_mode=None,
|
101 |
+
torchdynamo=None,
|
102 |
+
tpu_metrics_debug=False,
|
103 |
+
tpu_num_cores=None,
|
104 |
+
use_ipex=False,
|
105 |
+
use_legacy_prediction_loop=False,
|
106 |
+
use_mps_device=False,
|
107 |
+
warmup_ratio=0.0,
|
108 |
+
warmup_steps=500,
|
109 |
+
weight_decay=0.0,
|
110 |
+
xpu_backend=None,
|
111 |
+
)
|
112 |
+
12/17/2022 00:49:12 - INFO - __main__ - Data parameters: DataTrainingArguments(dataset_name='mozilla-foundation/common_voice_11_0', dataset_config_name='be', max_train_samples=None, max_eval_samples=None, audio_column_name='audio', text_column_name='sentence', max_duration_in_seconds=30.0, min_duration_in_seconds=0.0, train_split_name='train', eval_split_name='validation', do_lower_case=False, do_remove_punctuation=False, do_normalize_eval=True, language='be', task='transcribe', shuffle_buffer_size=500, streaming_train=True, streaming_eval=False)
|
113 |
+
12/17/2022 00:49:12 - INFO - __main__ - Model parameters: ModelArguments(model_name_or_path='openai/whisper-base', config_name=None, tokenizer_name=None, feature_extractor_name=None, cache_dir=None, use_fast_tokenizer=True, model_revision='main', use_auth_token=True, freeze_feature_encoder=False, freeze_encoder=False, forced_decoder_ids=None, suppress_tokens=None, model_index_name='Whisper Base Belarusian')
|
114 |
+
12/17/2022 00:49:12 - INFO - __main__ - output_dir already exists. will try to load last checkpoint.
|
115 |
+
12/17/2022 00:49:12 - INFO - __main__ - last_checkpoint is None. will try to read from training_args.resume_from_checkpoint
|
116 |
+
12/17/2022 00:49:12 - INFO - __main__ - last_checkpoint is None. resume_from_checkpoint is either None or not existing dir. will try to read from the model saved in the root of output_dir.
|
117 |
+
12/17/2022 00:49:12 - INFO - __main__ - dir is not empty, but contains only: ['src', '.gitattributes', 'train_20221217-004912.log', '.git', 'train_run_1.log']. it is OK - will start training
|
118 |
+
12/17/2022 00:49:13 - INFO - datasets.info - Loading Dataset Infos from /home/ubuntu/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f
|
119 |
+
12/17/2022 00:49:13 - INFO - datasets.builder - Overwrite dataset info from restored data version.
|
120 |
+
12/17/2022 00:49:13 - INFO - datasets.info - Loading Dataset info from /home/ubuntu/.cache/huggingface/datasets/mozilla-foundation___common_voice_11_0/be/11.0.0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f
|
121 |
+
12/17/2022 00:49:13 - INFO - datasets.info - Loading Dataset Infos from /home/ubuntu/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_11_0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f
|
122 |
+
12/17/2022 00:49:13 - INFO - datasets.builder - Overwrite dataset info from restored data version.
|
123 |
+
12/17/2022 00:49:13 - INFO - datasets.info - Loading Dataset info from /home/ubuntu/.cache/huggingface/datasets/mozilla-foundation___common_voice_11_0/be/11.0.0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f
|
124 |
+
12/17/2022 00:49:13 - WARNING - datasets.builder - Found cached dataset common_voice_11_0 (/home/ubuntu/.cache/huggingface/datasets/mozilla-foundation___common_voice_11_0/be/11.0.0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f)
|
125 |
+
12/17/2022 00:49:13 - INFO - datasets.info - Loading Dataset info from /home/ubuntu/.cache/huggingface/datasets/mozilla-foundation___common_voice_11_0/be/11.0.0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f
|
126 |
+
12/17/2022 00:49:14 - INFO - __main__ - vectorizing dataset
|
127 |
+
12/17/2022 00:49:14 - INFO - __main__ - will preprocess data using None processes.
|
128 |
+
12/17/2022 00:49:16 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at /home/ubuntu/.cache/huggingface/datasets/mozilla-foundation___common_voice_11_0/be/11.0.0/f8e47235d9b4e68fa24ed71d63266a02018ccf7194b2a8c9c598a5f3ab304d9f/cache-31769dd5b5301183.arrow
|
129 |
+
12/17/2022 00:49:18 - WARNING - huggingface_hub.repository - /home/ubuntu/whisper-base-belarusian/./ is already a clone of https://huggingface.co/ales/whisper-base-belarusian. Make sure you pull the latest changes with `repo.git_pull()`.
|
130 |
+
12/17/2022 00:49:20 - INFO - __main__ - ShuffleCallback. shuffling train dataset. seed: 42. dataset epoch: 0
|
131 |
+
12/17/2022 02:39:16 - WARNING - datasets.download.streaming_download_manager - Got disconnected from remote data host. Retrying in 5sec [1/20]
|
132 |
+
12/17/2022 03:40:45 - WARNING - huggingface_hub.repository - Adding files tracked by Git LFS: ['src/__pycache__/preprocess.cpython-38.pyc', 'src/__pycache__/run_speech_recognition_seq2seq_streaming.cpython-38.pyc']. This may take a bit of time if the files are large.
|
train_run_1.log
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c4a6e97d364980de73abe8f8a7e86432ce0b6f4d0395739b092d56d5da7905e8
|
3 |
+
size 3643
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|