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

https://github.com/meniny/tokenizer

🧜🏻‍♂️ A tiny human language tokenizer framework in Swift.
https://github.com/meniny/tokenizer

cocoa ios swift tokenizer

Last synced: about 1 year ago
JSON representation

🧜🏻‍♂️ A tiny human language tokenizer framework in Swift.

Awesome Lists containing this project

README

          





Version
Author
Build Passing
Swift


Platforms
MIT


Cocoapods
Carthage
SPM

# Introduction

## What's this?

`Tokenizer` is a tiny human language tokenizer framework in Swift..

## Preview

![Preview](https://i.loli.net/2017/12/27/5a434ea59f2bc.jpg)

## Installation

#### CocoaPods

```ruby
pod 'Tokenizer'
```

## Contribution

You are welcome to fork and submit pull requests.

## License

`Tokenizer` is open-sourced software, licensed under the `MIT` license.

## Usage

```swift
import Tokenizer

let stackoverflow = "Stack Overflow is the largest, most trusted online community for developers to learn, share their programming knowledge, and build their careers."
let baidu = "全球最大的中文搜索引擎、最大的中文网站。1999年底,身在美国硅谷的李彦宏看到了中国互联网及中文搜索引擎服务的巨大发展潜力,抱着技术改变世界的梦想,他毅然辞掉硅谷的高薪工作,携搜索引擎专利技术,于 2000年1月1日在中关村创建了百度公司。"

dump(stackoverflow.tokenize())
dump(Tokenizer.tokenize(text: baidu))
```