Including The AdvaS Module In contrast to the AdvaS versions released before, the module follows the object-oriented concept, and comes as class. You can include the AdvaS class by writing the following code: # import advas class from advas import Advas Based on that you initialize the according AdvaS object: text = Advas(["a line of text"], "utf-8") The first parameter is a list of text lines, and represents the text to be processed. The second parameter is the character encoding to be used. After the instantiation of the base object the methods from the AdvaS class can be used. The inclusion of the other classes from the AdvaS package works in the same way using the according class name. |
|