Beispiel #1
0
        /// <summary>
        /// Summarizes an article into a few key sentences.
        /// </summary>
        /// <param name="text">Text</param>
        /// <param name="title">Title</param>
        /// <param name="url">A Valid URL</param>
        /// <param name="mode">Analyze mode. Valid options are default
        ///   and short. Default is default. short mode produces shorter sentences.</param>
        /// <param name="sentencesNumber">Number of sentences to be returned.
        ///   Only in default mode (not applicable to short mode).
        ///   Default value is 5.
        ///   has precedence over sentencesPercentage.</param>
        /// <param name="sentencesPercentage">Percentage of sentences to be returned.
        ///   Only in default mode (not applicable to short mode).
        ///   Possible range is 1-100.
        ///   sentencesNumber has precedence over this parameter.</param>
        /// <returns>A <see cref="Summarize"/></returns>
        public Summarize Summarize(string text = null, string title = null, string url = null, string mode = null, int sentencesNumber = 0, int sentencesPercentage = 0)
        {
            Summarize summarize = new Aylien.TextApi.Summarize(configuration);
            Response  r         = summarize.call(text, title, url, mode, sentencesNumber.ToString(), sentencesPercentage.ToString());

            extractRateLimitParameters(r);
            return(summarize);
        }
 /// <summary>
 /// Summarizes an article into a few key sentences.
 /// </summary>
 /// <param name="text">Text</param>
 /// <param name="title">Title</param>
 /// <param name="url">A Valid URL</param>
 /// <param name="mode">Analyze mode. Valid options are default
 ///   and short. Default is default. short mode produces shorter sentences.</param>
 /// <param name="sentencesNumber">Number of sentences to be returned.
 ///   Only in default mode (not applicable to short mode).
 ///   Default value is 5.
 ///   has precedence over sentencesPercentage.</param>
 /// <param name="sentencesPercentage">Percentage of sentences to be returned.
 ///   Only in default mode (not applicable to short mode).
 ///   Possible range is 1-100.
 ///   sentencesNumber has precedence over this parameter.</param>
 /// <returns>A <see cref="Summarize"/></returns>
 public Summarize Summarize(string text = null, string title = null, string url = null, string mode = null, int sentencesNumber = 0, int sentencesPercentage = 0)
 {
     Summarize summarize = new Aylien.TextApi.Summarize(configuration);
     Response r = summarize.call(text, title, url, mode, sentencesNumber.ToString(), sentencesPercentage.ToString());
     extractRateLimitParameters(r);
     return summarize;
 }