fastBPE
fastBPE copied to clipboard
codes_path and vocab_path should be changed to what parameters should be given
- ** test these codes :**
import fastBPE bpe = fastBPE.fastBPE(codes_path, vocab_path) bpe.apply(["Roasted barramundi fish", "Centrally managed over a client-server architecture"]) - ** get the error:**
Traceback (most recent call last): File "test.py", line 3, in <module> bpe = fastBPE.fastBPE(codes_path, vocab_path) NameError: name 'codes_path' is not defined
My environment is Linux @myleott
only codes_path is needed. bpe = fastBPE.fastBPE(codes_path)