scoursen / python-calais Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/python-calais
Automatically exported from code.google.com/p/python-calais
This is not a bug but rather an enhancement request of the installation
process.
Could you please add a setup.py in the repository in order to make the
installation process easier.
This will give you an easy way to register this library on Pypi
(http://pypi.python.org/pypi) plus a very convenient one liner to install
it with pip.
Regards,
--yml
Original issue reported on code.google.com by [email protected]
on 19 Feb 2009 at 10:04
What steps will reproduce the problem?
1. run: easy_install python-calais-1.4.tar.gz
2. Get error: error: Couldn't find a setup script in
/Volumes/Digg/core/bobtail/deps/python-calais-1.4.tar.gz
What is the expected output? What do you see instead?
It should install.
What version of the product are you using? On what operating system?
1.4 on Mac OS X.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2010 at 6:11
I can't find the social tags in your result. Do you plan to include these
in the near future?
Kind regards,
Jacques Bopp
Original issue reported on code.google.com by [email protected]
on 29 Aug 2009 at 5:20
What steps will reproduce the problem?
1. submit a text containing some unicode character
urllib.urlencode does not support it so you need to encode content.
What is the expected output?
python-calais should be able to send to open calais none ascii character.
Please provide any additional information below.
I have created a branch of the project and implemented this. You can see a
patch of there :
http://bazaar.launchpad.net/~yml/python-calais/with_setup/revision/18
or if you prefer you can CO the code.
Original issue reported on code.google.com by [email protected]
on 26 Feb 2009 at 6:56
What steps will reproduce the problem?
1. run calais.py with python 2.4
What is the expected output? What do you see instead?
expected output is successful completion, instead is an exception due to
hashlib module not being found
What version of the product are you using? On what operating system?
revision 5 of python-calais, python 2.4, fedora core 5
Please provide any additional information below.
using an alternative hash function for the content_id method will fix it:
try:
import hashlib
except:
return hex(hash(text))
or whatever..
Original issue reported on code.google.com by jasonmadams
on 30 May 2008 at 2:10
What steps will reproduce the problem?
1. Activate opencalais on this url:
http://www.free-press-release.com/news/200812/1229105028.html
2. See the Alliance relation which is extracted
3.
What is the expected output? What do you see instead?
Two companies in the Alliance relation are expected(company1, company2)
Only a single 'company' field is extrated
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Feb 2009 at 9:48
Added two functions 'getURLAnalysis' and 'getAnalysis'. These allow the
output format ('text/simple', 'text/microformats', 'xml/rdf') to be set.
This is something that I required for a project I'm working on.
This required me to modify the PARAMS_XML variable. I've added usage
exmaples to the top of the file.
I'm new to programming in Python, so feedback is welcome.
Dorzey
Original issue reported on code.google.com by [email protected]
on 10 Jul 2008 at 1:38
Attachments:
I'm running python 2.6 and python-calais fails with an ImportError to
simplejson. I don't need simplesjon since python 2.6 has the json module.
Python calais should check for that.
Original issue reported on code.google.com by [email protected]
on 18 May 2010 at 7:03
What steps will reproduce the problem?
1. install pyhton-calais without simplejson
What is the expected output? What do you see instead?
pip should be able to pull the need dependency.
What version of the product are you using? On what operating system?
latest trunk on linux
Please provide any additional information below.
Adding the line below in the setup.py should fix the issue.
"""
install_requires=['simplejson'],
"""
http://bazaar.launchpad.net/~populous/python-calais/with_setup/annotate/head%3A/
setup.py
Original issue reported on code.google.com by [email protected]
on 18 Mar 2009 at 5:57
What steps will reproduce the problem?
1. >>>import calais
2. >>>calais=Calais(submitter="Test App", api_key="apikeyhere")
3.
What is the expected output? What do you see instead?
The expected output is no error so I can use the calais api.
A NameError is displayed instead as follows:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Calais' is not defined
What version of the product are you using? On what operating system?
I downloaded the most current version from SVN via the checkout command as
listed on this project's Source page.
The OS is Ubuntu 7.10 RDFlib is v 2.3.1 (2.4.0 would not install producing
errors during setup).
Please provide any additional information below.
I am completely stumped. Any help would be greatly appreciated. I am a
python novice. Thanks.
Original issue reported on code.google.com by [email protected]
on 8 Aug 2008 at 7:35
I'm getting the following error when I import calais:
Traceback (most recent call in last):
File "<stdin>", line 1, in ?
File "/home/rubinsta/lib/python/calais.py", line 23
class Calais():
^
SyntaxError: invalid syntax
Getting rid of the () after the class declarations will solve the problem.
Original issue reported on code.google.com by rubinsztajn
on 23 Jun 2009 at 3:46
[deleted issue]
Running analyse_url on a URL containing &pPK= will return an exception from the
Calais service.
For example: http://www.libdems.org.uk/news_detail.aspx?
title=Government_smothering_dissent_on_Heathrow_says_Kramer__&pPK=acc86d46-11a7-
4688-bd4a-82eea4cf99f3
I believe this is because of a conflict with an external ID field. I edited my
analyse_url to the
following and it is no longer an issue.
def analyze_url(self, url):
f = urllib.urlopen(url)
html = self.preprocess_html(f.read())
eid = urllib.quote(url)
return self.analyze(html, content_type="TEXT/HTML", external_id=eid)
Original issue reported on code.google.com by [email protected]
on 10 Jan 2010 at 8:56
What steps will reproduce the problem?
1. Running example code as presented in the project-home
API_KEY = "my_key"
calais = Calais(API_KEY, submitter="python-calais demo")
result = calais.analyze("George Bush was the President of the United States of
America until 2009. Barack Obama is the new President of the United States
now.")
result.print_entities()
What is the expected output? What do you see instead?
Expect to see;
Person: Barack Obama (0.29)
Country: United States of America (0.43)
Person: George Bush (0.43)
Country: United States (0.29)
Get the below exception/error instead;
raise ValueError(raw_result)
ValueError: <!--Use of the Calais Web Service is governed by the Terms of
Service located at http://www.opencalais.com.
By using this service or the results of the service you agree to these terms of
service.--><!--Relations: PersonCareer
Country: United States
Person: Barack Obama, George Bush
...
...
What version of the product are you using? On what operating system?
Running python-calais v.1.4
Mac OSX
Many thanks,
Original issue reported on code.google.com by [email protected]
on 3 Mar 2013 at 1:28
I made some changes so that other types (html/xml) can be submitted to Calais.
I haven't tested it
with xml though, just html. Seems to work fine for me.
Also removed the rdfdoc variable since it's only used in analyze once.
Expect more changes from me with error checking and whatnot.
Cheers.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2008 at 4:38
Attachments:
What steps will reproduce the problem?
1. Use "analyze_url" with a parameterized URL, e.g.
"http://www.nytimes.com/2009/03/01/magazine/01wwln-lede-t.html?
_r=1&partner=rss&emc=rss&pagewanted=print"
What is the expected output? What do you see instead?
Expect to get a "calais.CalaisResponse" returned; instead, get a ValueError
reporting that
"paramsXML is invalid"
What version of the product are you using? On what operating system?
SVN Head (which matches the 1.4 download)
Please provide any additional information below.
Attached is a patch which applies xml.sax.saxutils.escape to the values in
_get_params_XML. I
haven't looked to see if there are other places where this should be applied.
Original issue reported on code.google.com by [email protected]
on 28 Feb 2009 at 4:26
Attachments:
What steps will reproduce the problem?
1. Run the demo outlined in the readme
Instead of getting a response, I receive the following:
ValueError: Invalid request format - the request has missing or invalid
parameters
This is with v1.4 of python-calais, running python 2.5 on mac os x 10.5
Original issue reported on code.google.com by [email protected]
on 13 Jan 2009 at 6:00
Make json more dynamic
Original issue reported on code.google.com by [email protected]
on 16 Sep 2012 at 9:07
Attachments:
Have you considered moving this project to github ? This would make
contributions easier.
Original issue reported on code.google.com by [email protected]
on 18 Apr 2012 at 4:18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.