Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/t/Stock-Predictor-HEAD/src/sentiment/relations.py   Stock-Predictor(Download)
 
# Extract a ranked list of relations from a text string.
result = alchemyObj.TextGetRelations("Ugly bob attacked beautiful Susan.");
print result
 
params.setSentimentExcludeEntities(1)
 
result = alchemyObj.TextGetRelations("Madonna enjoys tasty Pepsi.  I love her style.", params);
print result
 
params.setRequireEntities(1)
 
result = alchemyObj.TextGetRelations("Madonna enjoys tasty Pepsi.  I love her style.", params);