---
title: "predictions(from:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlwordtagger/predictions(from:)"
---

# predictions(from:)

Predicts sequences of labels, token locations, and token lengths from the input strings.

## Declaration

```swift
func predictions<S>(from texts: S) throws -> DataFrame where S : Sequence, S.Element == String
```

## Parameters

- `texts`: A sequence of strings to tokenize and tag.

## Return Value

Return Value A DataFrame containing predicted labels, token locations, and token lengths.

## See Also

### Testing a word tagger

- [prediction(from:)](createml/mlwordtagger/prediction(from:).md)
- [predictionWithConfidence(from:)](createml/mlwordtagger/predictionwithconfidence(from:).md)
