コード例 #1
0
    def surname_is_toponym(self):
        """
        Is the surname the name of a country or US state?

        Returns: bool
        """

        surname = ' '.join(self.surname_tokens)
        return is_toponym(surname)
コード例 #2
0
    def title_is_toponym(self):
        """
        Is the title the name of a country or US state?

        Returns: bool
        """

        title = ' '.join(self.title_tokens)
        return is_toponym(title)
コード例 #3
0
ファイル: text.py プロジェクト: davidmcclure/osp
    def surname_is_toponym(self):

        """
        Is the surname the name of a country or US state?

        Returns: bool
        """

        surname = ' '.join(self.surname_tokens)
        return is_toponym(surname)
コード例 #4
0
ファイル: text.py プロジェクト: davidmcclure/osp
    def title_is_toponym(self):

        """
        Is the title the name of a country or US state?

        Returns: bool
        """

        title = ' '.join(self.title_tokens)
        return is_toponym(title)