PHP 클래스 Nlm30CitationDemultiplexerFilter, pkp-lib

상속: extends Filter
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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