Saturday, 6 May 2023

A simple Prolog tokenizer

Introduction

The purpose of this prolog script is to tokenize a sentence into a list of atoms of words without punctuations and spaces. In addition, all alphabets are converted into lower case letters.

See the predicates codes_atoms and remove below for the logic behind.

Output

Source Code

No comments:

Post a Comment