package entity

import "time"

type NERResult struct {
	Id            int64     `json:"id"`
	CreatedAt     time.Time `json:"created_at"`
	NewsItemId    int64     `json:"news_item_id"`
	NamedEntityId string    `json:"named_entity_id"`
	NewsItem      *NewsItem
	NamedEntity   *NamedEntity
}

func NewNERResult(id int64, createdAt time.Time, newsItemId int64, namedEntityId string) *NERResult {
	return &NERResult{
		Id:            id,
		CreatedAt:     createdAt,     // save date
		NewsItemId:    newsItemId,    // foreign key newsitems
		NamedEntityId: namedEntityId, // attantion has to be connected with namedentity is text field
	}
}
