Certainty detection
'Commitment' classifier?

Logbook: http://pad.constantvzw.org/p/certainty_logbook
Vragen: http://pad.constantvzw.org/p/certainty_questions
modality.py close reading: http://pad.constantvzw.org/p/certainty_modality.py_close_reading
Modality paper notes: http://pad.constantvzw.org/public_pad/certainty_notes_Modality-and-Negation

- Kan de modaliteits functie gebruikt worden voor het meten van  modaliteit in de engelse taal in het algemeen? Of is de modaliteit  context gevoelig?

nuance onderzoeken op verschillende niveaus:

- definition of types of certainty
- corpus (video's)

Deadline An: 9 mei
Deadline Manetta: 30 mei

plan:


Ressources
* "Modality and Negation: An Introduction  to the Special Issue."  (2012) - Morante,  Roser, and Caroline Sporleder.
http://www.anthology.aclweb.org/J/J12/J12-2001.pdf
--> notes: http://pad.constantvzw.org/public_pad/Certainty_notes_Modality-and-Negation

* Tom De Smedt, Modeling Creaitvity (Pattern Phd)
http://www.clips.ua.ac.be/sites/default/files/modeling-creativity.pdf
p.123
"The modality() function returns a value  between -1.0 and +1.0, expressing  the  degree  of certainty based on modal verbs and adverbs in the sentence. For example, “I  wish it  would stop raining” scores -0.75 while “It  will surely stop raining soon” scores +0.75 . In Wikipedia terms, modality  is  sometimes  referred  to  as weaseling  when  the  impression  is  raised  that  something important  is  said,  but  what  is  really vague  and  misleading  (Farkas  et  al.,  2010).  For  example: “some people claim that” or “common sense dictates that”."
from  pattern.en import parsetree
from pattern.en import  modality
print  modality(parsetree('some people claim that')) # 0.120

* 2011 Morante, R., & Daelemans W.   (2011).  Annotating Modality and Negation for a Machine Reading Evaluation.   QA4MRE at CLEF 2011http://clef2011.org/resources/proceedings/Overview_QA4MRE_Pilot_Clef2011.pdf

* Palmer (1986) maakt een driedeling; hij onderscheidt dynamische, deon-tische en epistemische modaliteit.

* Memory-Based Resolution of In-Sentence Scopes of Hedge Cues (2010) - Roser Morante, Vincent Van Asch, Walter Daelemans
http://www.aclweb.org/anthology/W/W10/W10-3006.pdf
(CLiPS paper, 2010, als onderdeel van de CoNLL-2010 uitdaging, waarvoor *waarschijnlijk* de modality.py gemaakt is.)
* Stating with Certainty or Stating with Doubt: Intercoder Reliability Results for Manual Annotation of Epistemically Modalized Statements (2007) - Victoria L. Rubin, Faculty of Information and Media Studies, University of Western Ontario 
http://aclweb.org/anthology/N/N07/N07-2036.pdf
(comp. linguistic research to the certainty levels of statements in a written news discourse)
in three news pragmatic contexts: (three contextual dimen-sions relevant to news discourse)


Pattern classifier 
modality.py


# "likely" => weight 1, "very likely" => weight 2
# "likely" => score 0.25 (neutral inclining towards positive).

# Numbers, citations, explanations make the sentence more factual.

if m == 0:

#---------------------------------------------------------------------------------------------------

# Celle, A. (2009). Hearsay adverbs and modality, in: Modality in English, Mouton.
# Allegedly, presumably, purportedly, ... are in the negative range because
# they introduce a fictious point of view by referring to an unclear source.

#---------------------------------------------------------------------------------------------------

# Tseronis, A. (2009). Qualifying standpoints. LOT Dissertation Series: 233.
# Following adverbs are not epistemic but indicate the way in which things are said.
# 1) actually, admittedly, avowedly, basically, bluntly, briefly, broadly, candidly, 
#    confidentially, factually, figuratively, frankly, generally, honestly, hypothetically, 
#    in effect, in fact, in reality, indeed, literally, metaphorically, naturally, 
#    of course, objectively, personally, really, roughly, seriously, simply, sincerely, 
#    strictly, truly, truthfully.
# 2) bizarrely, commendably, conveniently, curiously, disappointingly, fortunately, funnily, 
#    happily, hopefully, illogically, interestingly, ironically, justifiably, justly, luckily, 
#    oddly, paradoxically, preferably, regretfully, regrettably, sadly, significantly, 
#    strangely, surprisingly, tragically, unaccountably, unfortunately, unhappily unreasonably

#---------------------------------------------------------------------------------------------------

# The modality() function was tested with BioScope and Wikipedia training data from CoNLL2010 Shared Task 1.
# See for example Morante, R., Van Asch, V., Daelemans, W. (2010): 
# Memory-Based Resolution of In-Sentence Scopes of Hedge Cues
# http://www.aclweb.org/anthology/W/W10/W10-3006.pdf
# Sentences in the training corpus are labelled as "certain" or "uncertain".
# For Wikipedia sentences, 2000 "certain" and 2000 "uncertain":
# modality(sentence) > 0.5 => A 0.70 P 0.73 R 0.64 F1 0.68