Skip to content

Commit

Permalink
Update README.txt and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dizys committed Feb 17, 2022
1 parent 077a7fd commit 8651ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NYU NLP Homework 3: Implement a Viterbi HMM POS tagger
Improved the unknown-word tagging by classify the unknown by common suffixes
by Ziyang Zeng (zz2960)
Spring 2022

Expand Down
1 change: 1 addition & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from typing import Dict, List, Tuple, Set, Union, TypedDict

# For the word whose count is 1, we substitute it with the word affix class instead
suffixes: List[Union[List[str], str]] = [['able', 'ible'], 'al', 'an', 'ar', 'ed', 'en', ['er', 'or'],
'est', 'ing', ['ish', 'ous', 'ful', 'less'], 'ive', 'ly', ['ment', 'ness'], 'y']

Expand Down

0 comments on commit 8651ebd

Please sign in to comment.