Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS101 - Cognitive Science and Artificial Intelligence
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jacob Mwangu CS2023
CS101 - Cognitive Science and Artificial Intelligence
Commits
3c54b3c0
Verified
Commit
3c54b3c0
authored
1 year ago
by
William Waites
Browse files
Options
Downloads
Patches
Plain Diff
README.md
parent
0c7d0b0f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cs101-csai-assignment3.org
+45
-0
45 additions, 0 deletions
cs101-csai-assignment3.org
with
45 additions
and
0 deletions
cs101-csai-assignment3.org
0 → 100644
+
45
−
0
View file @
3c54b3c0
# CS101/3 - CS/AI Assignment 3
Assignment 3 is just like Assignment 2 but with words instead of letters.
You may wish to use the Python NLTK (https://www.nltk.org) Natural Language
Toolkit to help break the text up into tokens (words)
You may adapt the helper functions from Assignment 2 to work with words
rather than letters or you may write your own from scratch
Optionally, instead of doing this programming exercise, you may write a
short essay, no longer than 2000 words on one of the topics that we have
touched on in the philosophy of mind:
- Turing's Imitation Game
- Dneprov's Game (or, equivalently, Searle's Chinese Room)
- Logical Behaviorism or Functionalism
- The Engineering End-Run
Assignment 3 is worth 30% in total.
## 3a word probabilities - 10%
Given an input text, compute the word probabilities and generate a word,
xgb21195@cafe:~$ ./assignment-3a example.txt
the
## 3b conditional word probabilities - 10%
Given an input text and a word, generate the next word according to the
conditional probabilities in the text,
xgb21195@cafe:~$ ./assignment-3b example.txt the
cat
## 3c a stochastic parrot - 10%
Given an input text, generate a sentence of a particular length according
to the conditional word distributions,
xgb21195@cafe:~$ ./assignment-3b example.txt 10
the cat ate a burrito that is not a butterfly
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment