We train this model using CRF++ 2 , treating each sentence as a word sequence.
we create one instance for each word w and assign it a class label that indicates whether it begins an entity mention with type t j (B-t j ), is inside an entity mention with type t j (I-t j ), or is outside an entity mention (O).