The AKARA (អក្ខរា) project aims to give developers the power to easily add multi-language word suggestions support to their applications.
AkaraIOS offers this exciting feature to iOS developers.
- Word Suggestion
- Khmer
- English
- Next Word Suggestion for English
- Personalize Suggestions based on NGram
- Support for Other Languages. (Planing for Thai and Chinese)
- iOS 11.0+
- Xcode 10.0+
- Swift 4+
AkaraIOS is available through CocoaPods. To integrate AkaraIOS into your project, simply add the following line to your Podfile:
use_frameworks!
pod 'AkaraIOS'
let akara = Akara()
DispatchQueue.global(qos: .background).async {
let sentence = "ឯងនេះមួយយប់ៗដេកខ្វល់រឿងអនាគតមិនដឹងធ្វើអីចិញ្ចឹមខ្លួនមួយនេះរស់"
akara.suggest(sentence: sentence) { (suggestionType, suggestions, sequences, words) -> Void in
DispatchQueue.main.async {
print("input: \(sentence)")
print("sequences: \(sequences)")
print("words: \(words)")
print("suggestions: \(suggestions.suffix(3))")
print("suggestionType: \(suggestionType)")
print("======")
}
}
}
Code contributions are welcome for this project and other AKARA related projects.
Project | Status | URL |
---|---|---|
akara-android | Active | https://github.com/Socret360/akara-android |
akara-ios | Active | https://github.com/Socret360/akara-ios |
akara-python | Active | https://github.com/Socret360/akara-python |
akara-web | TBC | |
akara-flutter | TBC |
- Using simple space splitting and MLKit Language Identification to determine sequence language.
- Khmer: Deep Learning (LSTM) based on Joint Khmer Word Segmentation and Part-of-Speech Tagging Using Deep Learning from https://github.com/Socret360/joint-khmer-word-segmentation-and-pos-tagging.
- English: Simple space spliting.
- Khmer: Prefix Tree (a.k.a Trie) with dictionaries from https://github.com/sbbic/khmerlbdict.
- English: Prefix Tree (a.k.a Trie) with dictionary from https://github.com/dwyl/english-words.
- Khmer: BK Tree with dictionaries from https://github.com/sbbic/khmerlbdict.
- English: BK Tree with dictionaries from https://github.com/derekchuank/high-frequency-vocabulary.
- Khmer: Deep Learning (LSTM) trained by @ssokhavirith.
- English: N/A
AkaraIOS is available under the MIT license. See the LICENSE file for more info.