Computational Linguistics (LIN 177)
The slides above provide text and video instructions.
Introduction
Computational Linguistics (LIN 177) is a course taught at University of California, Davis. In this course, the professor provides a set of Prolog files that students have to “run”. With Kodethon, students can “run” these Prolog programs easily without having to install any software on their computers, which can be challenging.
Getting Started
- Create an account
- Go to https://kodethon.com
- Click "Login"
- Get files: Import the files provided by the instructor from a public project to your private folder.
- Go to https://www.kodethon.com/#/CDE?c=9a1c09c1e7aecbc161884c841a80a9bb
- Click the "Fork" button
- A popup message will tell you where the files were copied to (e.g., "Files forked to folder <FOLDERNAME>")
- (Optional) Rename <FOLDERNAME> to LIN177
- Click "OK"
Consulting Prolog Programs
There are two ways you can consult Prolog programs in Kodethon. There are tradeoffs in using one method over the other. The first method is easy but the interpreter interface does not look as nice as does in the Unix terminal. The second method is harder since it requires some knowledge of Unix terminal commands but this method gives you a direct access to the Prolog interpreter and it looks better.
Preliminary Step: Select programming environment
To consult or “run” a Prolog file, you need a Prolog interpreter. In this course, SWI-Prolog is preferred.
- Click on your NAME, in the top right of the window
- Click on “Settings”
- In the Environment section:
- Select “Prolog”
- Select “SWI-5.10.4”
Method #1: The Green Magic Run Button
- Click on the Kodethon logo (top left) to return to “My Files” view
- Open <FOLDERNAME>
- <FOLDERNAME> refers to the folder where you imported the files “B. Get Files”
- Select the file you want to consult
- Click the “Run” button
Method #2: The Unix Terminal
- Click on the Apps icon
- Select “CDE Shell”
- Type terminal
- A new tab or window should open.
- Troubleshooting: If the terminal does not start, try refreshing.
- Type cd <FOLDERNAME>
- “cd” is a Unix command that changes the current directory to the specified directory.
- <FOLDERNAME> refers to the folder where you imported the files “B. Get Files”
- In the terminal, type swipl <FILENAME>
- <FILENAME> is the name of the file you want to consult.
Miscellaneous
University | University of California, Davis |
---|---|
Professor(s) | Almerindo Ojeda |
Textbook(s) | A Computational Introduction to Linguistics: Describing Language in Plain PROLOG |
Recent Terms | Spring 2017 |