CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

zawgyidetector 1.2

zawgyidetector 1.2

Maintained by La Win Ko.



Zawgyi Detector Documentation

This documentation is for Swift specific usage of myanmar-tools.

Installation

Cocoapods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate ZawgyiDetector into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'zawgyidetector', '~> 1.2'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate ZawgyiDetector into your Xcode project using Carthage, specify it in your Cartfile:

github "lawinko/ZawgyiDetector" ~> 1.2

Usage

Create a singleton instance of ZawgyiDetector class and pass input string that you want to predict into predict function.

let detector = ZawgyiDetector.shared
detector.predict(input: "မ္း")

// score is now 0.999772 (very likely Zawgyi)

Zawgyi <-> Unicode conversion

You can check on this - https://github.com/Rabbit-Converter/Rabbit-Swift