parxivScore.py
def _score(self):
    """
      Calculate score for the articles.
    """
    self._scores = {}
    for k in self.articles.keys():      
      # Score title
      tiScore, tiD = self._scoreTitle(k)
      # Score abstract
      abScore, abD = self._scoreAbstract(k)
      # Score authors
      auScore, auD = self._scoreAuthors(k)
      # Score subcategory
      scScore, scD = self._scoreSubcategory(k)
     
      # Combine scores
      self._scores[k] = tiScore + abScore + auScore + scScore
      # Combine scoring details
      sd = "Scoring details: "
      for d in [tiD, abD, auD, scD]:
        if len(d) == 0:
          continue
        sd += d + "; "
      sd = sd.rstrip("; ")
      self.articles[k]["scoreDetails"] = sd

      Calculate score for the articles.
    
Calculate score for the articles.
Calculate score for the articles .
def _score(self):
    self._scores = {}
    for k in self.articles.keys():      
      tiScore, tiD = self._scoreTitle(k)
      abScore, abD = self._scoreAbstract(k)
      auScore, auD = self._scoreAuthors(k)
      scScore, scD = self._scoreSubcategory(k)
      self._scores[k] = tiScore + abScore + auScore + scScore
      sd = "Scoring details: "
      for d in [tiD, abD, auD, scD]:
        if len(d) == 0:
          continue
        sd += d + "; "
      sd = sd.rstrip("; ")
      self.articles[k]["scoreDetails"] = sd
def _score ( self ) : self . _scores = { } for k in self . articles . keys ( ) : tiScore , tiD = self . _scoreTitle ( k ) abScore , abD = self . _scoreAbstract ( k ) auScore , auD = self . _scoreAuthors ( k ) scScore , scD = self . _scoreSubcategory ( k ) self . _scores [ k ] = tiScore + abScore + auScore + scScore sd = "Scoring details: " for d in [ tiD , abD , auD , scD ] : if len ( d ) == 0 : continue sd += d + "; " sd = sd . rstrip ( "; " ) self . articles [ k ] [ "scoreDetails" ] = sd
Calculate score for the articles.
Calculate score for the articles .
"""
      Calculate score for the articles.
    """ # Score title # Score abstract # Score authors # Score subcategory # Combine scores # Combine scoring details
self