Python Forum
Relations between entities
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relations between entities
#13
I wish that you had posted the entire task at the start.
Since you sent it in a private e-mail, I ignored it until a few minutes ago.
You need to process this corpus with NLTK (nltk can be loaded into your python with 'pip install nltk')
once you do this, you can follow how to load a corpus from a JSON file here
I tried it, but it failed with the error
Error:
Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "C:\Python35\lib\site-packages\nltk\data.py", line 810, in load     resource_val = json.load(opened_resource)   File "C:\Python35\lib\json\__init__.py", line 268, in load     parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)   File "C:\Python35\lib\json\__init__.py", line 312, in loads     s.__class__.__name__))
The command I used was:
>>> import codecs
>>> reader = codecs.getreader("utf-8")
>>> nltk.data.load("https://code.google.com/archive/p/relation-extraction-corpus/downloads/20131104-place_of_death.json")
I also tried it without the codecs, and again with escaped slashes.
same results.

I think that your best bet is to see if you get a byte on your posting in jobs.
Again, just so someone knows what their getting into, I'd post the entire task.
It's not fair to do less.

It no longer makes sense to continue with the dictionary idea
Reply


Messages In This Thread
Relations between entities - by MattaFX - Dec-12-2016, 01:08 AM
RE: Relations between entities - by Larz60+ - Dec-12-2016, 10:29 AM
RE: Relations between entities - by MattaFX - Dec-12-2016, 11:50 AM
RE: Relations between entities - by Larz60+ - Dec-12-2016, 01:56 PM
RE: Relations between entities - by MattaFX - Dec-12-2016, 02:20 PM
RE: Relations between entities - by Larz60+ - Dec-12-2016, 03:57 PM
RE: Relations between entities - by MattaFX - Dec-12-2016, 10:37 PM
RE: Relations between entities - by Larz60+ - Dec-12-2016, 11:41 PM
RE: Relations between entities - by Larz60+ - Dec-13-2016, 04:13 AM
RE: Relations between entities - by MattaFX - Dec-13-2016, 02:27 PM
RE: Relations between entities - by Larz60+ - Dec-13-2016, 03:33 PM
RE: Relations between entities - by Larz60+ - Dec-13-2016, 08:53 PM
RE: Relations between entities - by Larz60+ - Dec-14-2016, 01:21 AM
RE: Relations between entities - by nilamo - Dec-16-2016, 07:20 PM
RE: Relations between entities - by Larz60+ - Dec-16-2016, 07:39 PM
RE: Relations between entities - by MattaFX - Dec-19-2016, 12:33 AM
RE: Relations between entities - by Kebap - Dec-19-2016, 11:41 AM
RE: Relations between entities - by nilamo - Dec-19-2016, 06:19 PM
RE: Relations between entities - by Ofnuts - Dec-19-2016, 05:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020