PHP Класс Nlm30CitationDemultiplexerFilter, pkp-lib

Наследование: extends Filter
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_citationOutputFilter Nlm30CitationSchemaCitationOutputFormatFilter
$_originalDescription the original unfiltered description required for scoring
$_originalRawCitation the original plain text citation required for scoring

Открытые методы

Метод Описание
__construct ( ) Constructor
_filterConfidenceScore ( &$metadataDescription ) : integer Derive a confidence score calculated as the similarity of the original raw citation and the citation text generated from the citation description.
_guessValues ( &$scoredCitations, $scoreThreshold ) : Citation Take an array of citation parse/lookup results and derive a citation with one "best" set of values.
getCitationOutputFilter ( ) : Nlm30CitationSchemaCitationOutputFormatFilter Get the citation output filter
getOriginalDescription ( ) : MetadataDescription Get the original citation description
getOriginalRawCitation ( ) : string Get the original raw citation
process ( &$input ) : Citation
setCitationOutputFilter ( &$citationOutputFilter ) Set the citation output filter
setOriginalDescription ( &$originalDescription ) Set the original citation description
setOriginalRawCitation ( $originalRawCitation ) Set the original raw citation

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

_filterConfidenceScore() публичный Метод

Derive a confidence score calculated as the similarity of the original raw citation and the citation text generated from the citation description.
public _filterConfidenceScore ( &$metadataDescription ) : integer
$metadataDescription MetadataDescription
Результат integer filter confidence score

_guessValues() публичный Метод

We determine the best values within the citations that have a score above the given threshold. Citations with a score below the threshold will be ignored. For these citations we count the frequency of values per meta-data property. The most frequent value will be chosen as "best" value. If two values have the same frequency then decide based on the score. If this is still ambivalent then return the first of the remaining values.
public _guessValues ( &$scoredCitations, $scoreThreshold ) : Citation
$scoredCitations
$scoreThreshold integer a number between 0 (=no threshold) and 100
Результат Citation one citation with the "best" values set

getCitationOutputFilter() публичный Метод

Get the citation output filter
public getCitationOutputFilter ( ) : Nlm30CitationSchemaCitationOutputFormatFilter
Результат Nlm30CitationSchemaCitationOutputFormatFilter

getOriginalDescription() публичный Метод

Get the original citation description
public getOriginalDescription ( ) : MetadataDescription
Результат MetadataDescription

getOriginalRawCitation() публичный Метод

Get the original raw citation
public getOriginalRawCitation ( ) : string
Результат string

process() публичный Метод

См. также: Filter::process()
public process ( &$input ) : Citation
$input array incoming MetadataDescriptions
Результат Citation

setCitationOutputFilter() публичный Метод

Set the citation output filter
public setCitationOutputFilter ( &$citationOutputFilter )
$citationOutputFilter Nlm30CitationSchemaCitationOutputFormatFilter

setOriginalDescription() публичный Метод

Set the original citation description
public setOriginalDescription ( &$originalDescription )
$originalDescription MetadataDescription

setOriginalRawCitation() публичный Метод

Set the original raw citation
public setOriginalRawCitation ( $originalRawCitation )
$originalRawCitation string

Описание свойств

$_citationOutputFilter публичное свойство

public Nlm30CitationSchemaCitationOutputFormatFilter $_citationOutputFilter
Результат Nlm30CitationSchemaCitationOutputFormatFilter

$_originalDescription публичное свойство

the original unfiltered description required for scoring
public $_originalDescription

$_originalRawCitation публичное свойство

the original plain text citation required for scoring
public $_originalRawCitation