public interface SmartContentAuthoringService
This class implements a service that can be used to apply smart content authoring to a text.
SmartContentException
is thrown.Modifier and Type | Method and Description |
---|---|
LanguageData |
getLanguageData(java.util.Locale locale)
Determines the language data for the provided
Locale . |
java.lang.String |
summarize(java.lang.String inputString,
int outputLen,
LanguageData language)
Creates a summarized version of the provided text.
|
LanguageData getLanguageData(java.util.Locale locale)
Determines the language data for the provided Locale
.
The method uses the resolution rules stated in the interface's documentation
to match over-specific Locale
s to suitable language data.
locale
- The localenull
if the specified Locale
is not
supportedjava.lang.String summarize(java.lang.String inputString, int outputLen, LanguageData language) throws SmartContentException
Creates a summarized version of the provided text.
"Summarized" means that the text is reduced to a maximum of the provided number of words. The algorithm will use an algorithm to determine which parts of the original text can be dropped to reach the target length.
inputString
- The original textoutputLen
- The target length (in words); the actual result may contain less
words, but not more than specified by this parameterlanguage
- The language of the text, as returned by
getLanguageData(Locale)
SmartContentException
- if the text could not by summarized, for example if
required language data (model, dictionaries, ...) were
missing or an unsupported language was specified"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"