Last active
August 29, 2015 14:16
-
-
Save eddotman/0dc3a3132630efab3b25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#e.g. sentence = "To confirm recent reports [7, 8, 9] that human EB-1 is a plus-tip-tracking protein in vitro, | |
# we visualized EB1 interacting with microtubules [2, 35] polymerizing from stabilized seeds using 2-color TIRF microscopy." | |
def get_connotation(word): | |
# some black magic | |
return score #(1 = positive, -1 = negative, 0 = neutral) | |
def find_features(sentence): | |
trivial_feature = len(sentence.split(' ')) #approx. number of words | |
return [trivial_feature, ] #plus some non-trivial features... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment