Property | Type | Description | |
---|---|---|---|
$currentDocument | TextAnalysis\Documents\DocumentAbstract | When looped through this is the current document | |
$documents | array | An array of documents |
Method | Description | |
---|---|---|
__construct ( array $documents ) | An array of DocumentAbstract objects | |
__destruct ( ) | ||
applyExtract ( TextAnalysis\Interfaces\IExtractStrategy $extract ) : array | Apply extract to the document to pull out all the points of interest | |
applyStemmers ( array $stemmers ) | ||
applyTransformations ( array $transformations ) | ||
count ( ) : integer | ||
current ( ) : TextAnalysis\Documents\DocumentAbstract | ||
getIterator ( ) : ArrayIterator | ||
next ( ) | ||
offsetExists ( mixed $key ) : boolean | ||
offsetGet ( mixed $key ) : TextAnalysis\Documents\DocumentAbstract | ||
offsetSet ( mixed $key, TextAnalysis\Documents\DocumentAbstract $value ) : boolean | ||
offsetUnset ( mixed $key ) : null | ||
rewind ( ) | ||
valid ( ) : boolean |
public __construct ( array $documents ) | ||
$documents | array |
public applyExtract ( TextAnalysis\Interfaces\IExtractStrategy $extract ) : array | ||
$extract | TextAnalysis\Interfaces\IExtractStrategy | |
return | array |
public applyStemmers ( array $stemmers ) | ||
$stemmers | array | An array of stemmers Apply the collection of stem transformers to the documents |
public applyTransformations ( array $transformations ) | ||
$transformations | array | An array of Apply the collection of token transformers to the documents |
public current ( ) : TextAnalysis\Documents\DocumentAbstract | ||
return | TextAnalysis\Documents\DocumentAbstract |
protected DocumentAbstract,TextAnalysis\Documents $currentDocument | ||
return | TextAnalysis\Documents\DocumentAbstract |