SKSummaryGetParagraphSummaryInfo(_:_:_:_:)
Gets detailed information about a body of text for constructing a custom paragraph-based summary string.
Declaration
func SKSummaryGetParagraphSummaryInfo(_ summary: SKSummary!, _ numParagraphsInSummary: CFIndex, _ outRankOrderOfParagraphs: UnsafeMutablePointer<CFIndex>!, _ outParagraphIndexOfParagraphs: UnsafeMutablePointer<CFIndex>!) -> CFIndexParameters
- summary:
The summarization object containing the text from which you want to build a summary.
- numParagraphsInSummary:
The maximum number of paragraphs you want in the summary.
- outRankOrderOfParagraphs:
On input, a pointer to an array of CFIndex objects. On output, points to the previously allocated array, which now lists the summarization relevance rank of each paragraph in the original text. The most important paragraph gets a rank of 1. The array size must equal
numParagraphsInSummary, or else beNULLif you don’t want to get the relevance ranks. - outParagraphIndexOfParagraphs:
On output, points to an array containing the ordinal number for each paragraph in the original text. Use the 1445711 Sksummarycopyparagraphatindex function with one of these numbers to get the corresponding paragraph. The array size must equal
numParagraphsInSummary, or else beNULLif you don’t want to get the ordinal numbers of the paragraphs.
Return Value
The number of paragraphs in the summary.
See Also
Working With Summarization
SKSummaryCreateWithString(_:)SKSummaryGetSentenceSummaryInfo(_:_:_:_:_:)SKSummaryGetSentenceCount(_:)SKSummaryGetParagraphCount(_:)SKSummaryCopySentenceAtIndex(_:_:)SKSummaryCopyParagraphAtIndex(_:_:)SKSummaryCopySentenceSummaryString(_:_:)SKSummaryCopyParagraphSummaryString(_:_:)SKSummaryGetTypeID()