Class GenProfile


  • public class GenProfile
    extends Object
    Generate a language profile from any given text file. TODO this is copy/paste from the other class with the same name. Check if code can be re-used. Rename to something meaningful.
    Author:
    François ROLAND
    • Constructor Detail

      • GenProfile

        public GenProfile()
    • Method Detail

      • generate

        public static LangProfile generate​(String lang,
                                           File textFile)
        Loads a text file and generate a language profile from its content. The input text file is supposed to be encoded in UTF-8.
        Parameters:
        lang - target language name.
        textFile - input text file.
        Returns:
        Language profile instance