pytorch/text

Adding vocab to field object

オープン

#378 opened on 2018/09/08

 (12 件のコメント) (1 件のリアクション) (0 人の担当者)Python (822 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (3,396 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Hi Everyone,

Is there any way of adding more vocabulary to a Field object that already has had its vocab built?

for example if at one point I have run this sort of code:

TEXT = field()
TEXT.build_vocab(dataset_a)

Is it possible to add vocab to TEXT from another dataset without erasing the current vocab built from dataset_a?

Thanks!

コントリビューターガイド