mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
12 lines
236 B
Python
12 lines
236 B
Python
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
import pytest
|
|
|
|
|
|
@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)
|