<!--
{
  "availability" : [
    "macOS: 11.0.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLActionClassifier/DataSource/videosWithAnnotations()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLActionClassifierV10DataSourceO21videosWithAnnotationsAA11MLDataTableVyKF"
  },
  "title" : "videosWithAnnotations()"
}
-->

# videosWithAnnotations()

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

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

## Return Value

A data table.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)