← Back to team overview

commonsense team mailing list archive

[Question #84508]: Installing ConcepNet 4.0b11

 

New question #84508 on ConceptNet:
https://answers.launchpad.net/conceptnet/+question/84508

Good Morning,
Let me start by thanking you for the great work.
I was trying to install the latest version of ConceptNet 
so I downloaded and imported the Postgres DB from http://conceptnet.media.mit.edu/dist/ConceptNet-2009-08-26.psql.gz.
then installed concepnet using 
#easy_install conceptnet
Searching for conceptnet
Best match: ConceptNet 4.0b11
Processing ConceptNet-4.0b11-py2.6.egg
...

But when I try to test it using the following code:
  from csc.conceptnet4.models import Concept
  from csc.nl import get_nl
  en_nl = get_nl('en')
  en_nl.lemma_split("you can sit on a couch")

I get the following error
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/site-packages/ConceptNet-4.0b11-py2.6.egg/csc/nl/euro.py", line 321, in lemma_split
    words = [self.autocorrect.get(word, word) for word in words if word]
  File "/usr/local/lib/python2.6/site-packages/ConceptNet-4.0b11-py2.6.egg/csc/nl/euro.py", line 24, in __get__
    result = instance.__dict__[self.__name__] = self.func(instance)
  File "/usr/local/lib/python2.6/site-packages/ConceptNet-4.0b11-py2.6.egg/csc/nl/euro.py", line 88, in autocorrect
    family='autocorrect'):
  File "/usr/local/lib/python2.6/site-packages/django/db/models/query.py", line 106, in _result_iter
    self._fill_cache()
  File "/usr/local/lib/python2.6/site-packages/django/db/models/query.py", line 692, in _fill_cache
    self._result_cache.append(self._iter.next())
  File "/usr/local/lib/python2.6/site-packages/django/db/models/query.py", line 238, in iterator
    for row in self.query.results_iter():
  File "/usr/local/lib/python2.6/site-packages/django/db/models/sql/query.py", line 287, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/local/lib/python2.6/site-packages/django/db/models/sql/query.py", line 2369, in execute_sql
    cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "nl_autoreplacerule" does not exist
LINE 1: ..."match", "nl_autoreplacerule"."replace_with" FROM "nl_autore...

The host machine is a RedHat CentOS 5.2 32 bit.



-- 
You received this question notification because you are a member of
Commonsense Computing, which is an answer contact for ConceptNet.