pytorch/text

Adding vocab to field object

Open

#378 aberto em 8 de set. de 2018

Ver no GitHub
 (12 comments) (1 reaction) (0 assignees)Python (822 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (3.396 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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!

Guia do colaborador