Class TermsDataSource

    • Field Detail

      • PATTERN

        private static final Pattern PATTERN
        The PATTERN is used to check if a word is a punctuation or other special symbols.
      • STOPLIST_FILE_NAME

        private static final String STOPLIST_FILE_NAME
        The STOPLIST_FILE_NAME field is used to store the name of the file containing the stoplist.
        See Also:
        Constant Field Values
      • stoplist

        private final List<String> stoplist
        The stoplist field is used to store the stoplist.
    • Constructor Detail

      • TermsDataSource

        public TermsDataSource()
        TermsDataSource constructor. It is used to initialize the data source.
    • Method Detail

      • getStoplist

        private List<String> getStoplist()
        The getStoplist method is used to get the stoplist from the file.
        Returns:
        the stoplist as a list of strings or an empty list if an error occurs