An open API service indexing awesome lists of open source software.

https://github.com/wso2/analytics-solutions


https://github.com/wso2/analytics-solutions

common

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# siddhi-execution-tokenizer

## Entity

### tokenize *(Stream Processor)*

This splits a string into words

Syntax
```
entity:tokenize( entity.element)
```

QUERY PARAMETERS


Name
Description
Default Value
Possible Data Types
Optional
Dynamic


entity.element
The input entity element which should be split.

STRING
No
No

Examples
EXAMPLE 1
```
define stream inputStream (hashtags string);
@info(name = 'query1')
from inputStream#entity:tokenize(hashtags)
select hashtag
insert into outputStream;
```

This query performs tokenization for the given entity element.

## Text

### tokenize *(Stream Processor)*

This splits a string into words

Syntax
```
text:tokenize( text)
```

QUERY PARAMETERS


Name
Description
Default Value
Possible Data Types
Optional
Dynamic


text
The input text which should be split.

STRING
No
No

Examples
EXAMPLE 1
```
define stream inputStream (text string);
@info(name = 'query1')
from inputStream#text:tokenize(text)
select text
insert into outputStream;
```

This query performs tokenization for the given string.