https://github.com/ashwanthkumar/uclassify-scala
Scala client for uClassify.com API
https://github.com/ashwanthkumar/uclassify-scala
Last synced: 8 months ago
JSON representation
Scala client for uClassify.com API
- Host: GitHub
- URL: https://github.com/ashwanthkumar/uclassify-scala
- Owner: ashwanthkumar
- License: apache-2.0
- Created: 2013-07-28T07:52:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-01-16T16:25:03.000Z (over 10 years ago)
- Last Synced: 2024-12-27T12:44:49.249Z (over 1 year ago)
- Language: Scala
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](http://unmaintained.tech/)
# uClassify Scala [](https://travis-ci.org/ashwanthkumar/uClassify-scala/builds/)
Scala client for [uClassify Service API](http://www.uclassify.com/XmlApiDocumentation.aspx). This repo is WIP.
## Client Usage
```
val client = UClassifyClient("__READ__API__KEY", "__WRITE__API__KEY")
client.createClassifier(classifierName)
val sampleTexts = List("she love me", "he hates me")
for {
result <- client.classify(classifierName, sampleTexts)
} yield result.foreach(println)
```
## Example Usage
Refer Sample.scala under examples
## License
Copyright 2013 Ashwanth Kumar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.