In [24]:
from topia.termextract import tag, extract

In [25]:
text = "The right to health not only embraces within its scope such underlying determinants of health as an adequate supply of safe food, but its realization is also inextricably linked to the fulfilment of the right to food. Access to nutritiously safe food as an underlying determinant of the right to health is connected with the concepts of food security and nutrition security. Food security is defined by the Food and Agriculture Organization  of the United Nations as the situation where “all people, at all times, have physical and economic access to sufficient, safe and nutritious food necessary to meet their dietary needs and food preferences for an active and healthy life”.1 The Committee on the Economic, Social and Cultural Rights has held that one of the core State obligations under the right to health includes ensuring “access to the minimum essential food which is nutritionally adequate and safe, to ensure freedom from hunger to everyone”.2 On the legal obligations under the right to food, the Committee similarly observed that: “Every State is obliged to ensure for everyone under its jurisdiction access to the minimum essential food which is sufficient, nutritionally adequate and safe, to ensure their freedom from hunger.”3 This concomitant obligation is increasingly important, as unhealthy foods have been implicated in the growing global burden of NCDs."

In [31]:
extractor = extract.TermExtractor( )
# extractor.filter = extract.permissiveFilter
print extractor( text )


[('Agriculture Organization', 1, 2), ('jurisdiction access', 1, 2), ('right', 5, 1), ('Cultural Rights', 1, 2), ('United Nations', 1, 2), ('food security', 2, 2), ('hunger .\xe2\x80\x9d3', 1, 2), ('access', 3, 1), ('health', 4, 1), ('nutrition security', 1, 2), ('food', 11, 1), ('\xe2\x80\x9c access', 1, 2), ('food preferences', 1, 2), ('life \xe2\x80\x9d.1', 1, 2), ('obligation', 3, 1), ('everyone \xe2\x80\x9d.2', 1, 2), ('\xe2\x80\x9c', 3, 1), ('core State obligations', 1, 3), ('security', 3, 1)]

In [ ]: