Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*~
*.pyc
__pycache__/
2 changes: 1 addition & 1 deletion jv3/study/#content_analysis.py#
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ note_owner = lambda note: {'note_owner': repr(note["owner"])}
note_length = lambda x : {'note_length':len(x["contents"])}
#note_words = lambda x : {'note_words':len(nltk.word_tokenize(eliminate_urls(x["contents"])))}

DOWS=["mon","monday","tue","tuesday","wed","wedmesday","thu","thurs","thursday","fri","friday","sat","saturday","sun","sunday"]
DOWS=["mon","monday","tue","tuesday","wed","wednesday","thu","thurs","thursday","fri","friday","sat","saturday","sun","sunday"]

MONTHS=["jan","january",
"feb","february",
Expand Down
2 changes: 1 addition & 1 deletion jv3/study/content_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def time_of_activity(u):
note_length = lambda x : {'note_length':len(x["contents"].strip())}
#note_words = lambda x : {'note_words':len(nltk.word_tokenize(eliminate_urls(x["contents"])))}

DOWS=["mon","monday","tue","tuesday","wed","wedmesday","thu","thurs","thursday","fri","friday","sat","saturday","sun","sunday"]
DOWS=["mon","monday","tue","tuesday","wed","wednesday","thu","thurs","thursday","fri","friday","sat","saturday","sun","sunday"]

MONTHS=["jan","january",
"feb","february",
Expand Down
2 changes: 1 addition & 1 deletion jv3/study/wMaxEntFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def makeLambda(f,i):
contains_features = [contains_verbs,contains_adj]#, contains_url] ##

# Testing below features
DOWS=["mon","monday","tue","tuesday","wed","wedmesday","thu","thurs","thursday","fri","friday","sat","saturday","su\
DOWS=["mon","monday","tue","tuesday","wed","wednesday","thu","thurs","thursday","fri","friday","sat","saturday","su\
n","sunday"]
contains_dow = lambda notevals, words: ("1+_day_of_week", sum([word.lower() in DOWS for word in words]) > 0) #ca.daysofweek(notevals)['daysofweek'] > 0)
contains_VBZ = lambda notevals, words: ("1+_VBZ", count_pos(words, ['VBZ']) > 0)
Expand Down
117 changes: 0 additions & 117 deletions jv3/study/wolfe/note_create.py~

This file was deleted.

60 changes: 0 additions & 60 deletions jv3/study/wolfe/tfidf.py~

This file was deleted.

2 changes: 1 addition & 1 deletion jv3/study/wolfe/wMaxEntFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def makeLambda(f,i):
contains_features = [contains_verbs,contains_adj]#, contains_url] ##

# Testing below features
DOWS=["mon","monday","tue","tuesday","wed","wedmesday","thu","thurs","thursday","fri","friday","sat","saturday","su\
DOWS=["mon","monday","tue","tuesday","wed","wednesday","thu","thurs","thursday","fri","friday","sat","saturday","su\
n","sunday"]
contains_dow = lambda notevals, words: ("1+_day_of_week", sum([word.lower() in DOWS for word in words]) > 0) #ca.daysofweek(notevals)['daysofweek'] > 0)
contains_VBZ = lambda notevals, words: ("1+_VBZ", count_pos(words, ['VBZ']) > 0)
Expand Down