Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID string Title string Addr url.URL Author string Created time.Time Updated time.Time Published time.Time Body string Summary string Keywords []string NER NER }
Article represents a news article. The fields title, addr, author and published form the original news article. The other fields are used for searching and book keeping.
func (Article) Equal ¶
Equal checks if this Article a is equal to the given Article b. Only fields from the original article are condsidered. Original properties are title, addr, author, date of publication and body. Fields are not been validated. All other fields of the article are not been checked.
type NER ¶
type NER struct { // Pers is a list of persons found in the article. Pers []string // Locs is a list of locations found in the article. Locs []string // Orgs is a list of Organisations found in the article. Orgs []string }
NER holds lists of the different entity types found in an article.
Click to show internal directories.
Click to hide internal directories.