com.google.api.detect
Class Detect
java.lang.Object
com.google.api.GoogleAPI
com.google.api.detect.Detect
public class Detect
- extends GoogleAPI
Makes the Google Detect API available to Java applications.
- Author:
- Richard Midwinter, Soren AD
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Detect
public Detect()
execute
public static DetectResult execute(String text)
throws Exception
- Detects the language of a supplied String.
- Parameters:
text
- The String to detect the language of.
- Returns:
- A DetectResult object containing the language, confidence and reliability.
- Throws:
Exception
- on error.
Copyright © 2011. All Rights Reserved.