You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content = "The video will start in 8 Cancel\nClick to play Tap to play\nGet daily updates directly to your inbox + Subscribe Thank you for subscribing! Could not subscribe, try again later Invalid Email\nSeveral schools will remain closed on Tuesday as a weather warning for ice continues into the morning.\nMore than 200 schools in North Wales were closed today after snow and ice caused chaos over the weekend.\nThe vast majority are expected to re-open but some closures are still expected.\nThis story will be updated as more information becomes available.\nTemperatures are not expected to be above 0C until midday.\n(Image: Robert Parry-Jones)\nAs of 7.55pm, the schools which will be closed on Tuesday in Wrexham are:\nSt Christopher's School, Wrexham, Ysgol y Waun, Chirk, Froncysyllte CP and Garth CP. All the others are expected to re-open although this information is subject to change.\nIn Denbighshire, Denbigh High School will be open tomorrow but Ysgol Plas Brondyffryn, Ysgol Carreg Emlyn and Ysgol Dinas Bran will be shut.\nYsgol Tir Morfa will be open but transport from Denbigh and further south will not operate.\nFor full details on school transport in Denbighshire click here.\nFlintshire Council currently say there are no planned closures tomorrow although that could change.\nColeg Cambria will be shut entirely on Tuesday.\nGlyndwr University will be open and lectures are expected to take place."
from flair.data import Sentence # ver: 0.8
from flair.models import SequenceTagger
tagger = SequenceTagger.load("ner-large")
tagger.predict(content)
error:
/usr/local/lib/python3.6/dist-packages/flair/models/sequence_tagger_model.py in predict(self, sentences, mini_batch_size, all_tag_prob, verbose, label_name, return_loss, embedding_storage_mode)
335 previous_sentence = None
336 for sentence in sentences:
--> 337 if sentence.is_context_set(): continue
338 sentence._previous_sentence = previous_sentence
339 sentence._next_sentence = None
AttributeError: 'str' object has no attribute 'is_context_set'
The text was updated successfully, but these errors were encountered:
error:
The text was updated successfully, but these errors were encountered: