This documentation is for Swift specific usage of Myanmar Tools. For general documentation, see the top-level README.
Cocoapods
platform :ios, '(ios_version)'
source 'https://github.com/CocoaPods/Specs.git'
target 'Project-name' do
pod 'myanmartools'
end
/**
create an instance of ZawgyiDetector class and pass string input that
you want to predict into predict function
**/
let detector = ZawgyiDetector()
detector.predict(input: "မ္း")
// score is now 0.999772 (very likely Zawgyi)
You can check on this - https://github.com/Rabbit-Converter/Rabbit-Swift