spaCy/spacy/tests/parser/test_beam_parse.py

12 lines
236 B
Python
Raw Normal View History

2017-10-07 03:15:15 +03:00
# coding: utf8
from __future__ import unicode_literals
2017-07-22 02:48:35 +03:00
import pytest
2017-10-07 03:15:15 +03:00
@pytest.mark.models('en')
def test_beam_parse(EN):
doc = EN(u'Australia is a country', disable=['ner'])
ents = EN.entity(doc, beam_width=2)
print(ents)