---
title: videosWithAnnotations()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mlactionclassifier/datasource/videoswithannotations()
---

# videosWithAnnotations()

Generates a data table of the data source’s video URL locations and action annotations.

## Declaration

```swift
func videosWithAnnotations() throws -> MLDataTable
```

## Return Value

Return Value A data table.

## Discussion

Discussion The data table includes a column for the annotation’s label, and if applicable, the annotation’s starting- and ending-time indices.

## See Also

### Generating data tables from a data source

- [keypointsWithAnnotations(targetFrameRate:)](createml/mlactionclassifier/datasource/keypointswithannotations(targetframerate:).md)
- [stratifiedSplit(proportions:seed:labelColumn:)](createml/mlactionclassifier/datasource/stratifiedsplit(proportions:seed:labelcolumn:).md)
