File size: 381 Bytes
9aba307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
""" reader.py
An abstract class for assigning readings to Japanese sentences.
"""
import abc


class Reader(abc.ABC):
    @abc.abstractmethod
    def furigana(self, text: str) -> str:
        """Add furigana to Japanese text

        Args:
            text (str): a sentence in Japanese

        Returns:
            str: sentence annotated with furigana

        """
        pass