Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benbahrenburg/SentimentlySwift
Sentiment Analysis Swift Playground
https://github.com/benbahrenburg/SentimentlySwift
Last synced: 3 months ago
JSON representation
Sentiment Analysis Swift Playground
- Host: GitHub
- URL: https://github.com/benbahrenburg/SentimentlySwift
- Owner: benbahrenburg
- License: mit
- Created: 2017-07-02T07:22:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T17:41:09.000Z (over 7 years ago)
- Last Synced: 2024-04-22T12:32:10.441Z (7 months ago)
- Language: Swift
- Size: 60.5 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Swift-Playgrounds - SentimentlySwift - Sentiment analysis in Swift. (Miscellaneous / SpriteKit)
README
# SentimentlySwift
A Sentiment Analysis Swift Playground using the [AFINN-165](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010) wordlist and [Emoji Sentiment Ranking](http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0144296) to perform [sentiment analysis](http://en.wikipedia.org/wiki/Sentiment_analysis) on a given phrase.
More details available in [this blog post](https://bencoding.com/2017/07/06/sentiment-analysis-using-swift/).
### Features
- Provider own weight adjustments or use the defaults
- Phrase tokenized using NSLinguisticTagger
-[ Lemmatization](https://nlp.stanford.edu/IR-book/html/htmledition/stemming-and-lemmatization-1.html) word matching used to determine weights
- Override / provide weights at an instance or phrase level#### Considerations
- English only, ie AFINN and Emoji Ranking are in English. Would be grateful for PRs with additional language support
- Swift 3 support, only at the moment#### Roadmap
- CocoaPods Support
- Swift 4SentimentlySwift is based on the [sentiment](https://github.com/thisandagain/sentiment) and [sentiment-v2](https://github.com/rajatsharma305/sentiment-v2) node.js packages.