mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-30 20:06:30 +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)
|