read_dataset

package
v0.0.0-...-82309cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Title string `xml:"title"`
	URL   string `xml:"url"`
	Text  string `xml:"abstract"`
	ID    int
}

We expect the json file to have the following attributes : Title, URL and Abstract.

func ReadDataset

func ReadDataset(filepath string) ([]Document, error)

type Documents

type Documents struct {
	DocumentsList []Document `xml:"doc"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL