diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-06 00:13:43 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-06 00:13:43 +0300 |
| commit | 90246e005f04310c65c84fcf3ac0f2aac3f498d3 (patch) | |
| tree | a4e44e6139821a47445eb5dea2f4676e775ef690 /utils.py | |
| parent | 154962743a4dc768193070e6b4e8b9f7cf51a2ef (diff) | |
added constants and started utils
Diffstat (limited to 'utils.py')
| -rw-r--r-- | utils.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils.py b/utils.py new file mode 100644 index 0000000..c5e020f --- /dev/null +++ b/utils.py @@ -0,0 +1,12 @@ +from consts import SN, SN_ + +def NS(n): + """Noun sexiness function + Returns a real value measure of the maximum similarity a noun `n not in SN` + has to each of the `nouns in SN_` + """ + for noun in SN_: + acv = () + # let acv be the vector of absolute frequencies of each adjective that + # modifies the noun in the union of the erotica and Brown corpora + return 0 |
