nikitakit / self-attentive-parser

High-accuracy NLP parser with models for 11 languages.

Home Page:https://parser.kitaev.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsing a Single German Sentence Requires More Than 12GB GPU RAM

yongzx opened this issue · comments

The issue as mentioned in the title. I am wondering if this is normal since English Constituency Parsing requires way fewer GPU resources (can be done with less than 12 GPU RAM).

My code (following https://spacy.io/universe/project/self-attentive-parser)

import spacy
from benepar.spacy_plugin import BeneparComponent
!python -m spacy download de_core_news_sm
import de_core_news_sm
nlp = de_core_news_sm.load()

nlp.add_pipe(BeneparComponent('benepar_de'))
doc = nlp("Guten Morgen. ")