---
title: labeledTexts()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mltextclassifier/datasource/labeledtexts()
---

# labeledTexts()

Fetches the labeled data from the data source.

## Declaration

```swift
func labeledTexts() throws -> [String : [String]]
```

## Return Value

Return Value A dictionary that contains each label with their related text entries.

## See Also

### Retrieving the data

- [stratifiedSplit(proportions:seed:labelColumn:textColumn:)](createml/mltextclassifier/datasource/stratifiedsplit(proportions:seed:labelcolumn:textcolumn:).md)
