Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 71687c3

Browse files
author
Alon Eirew
committed
minor changes for clarity
1 parent 8786753 commit 71687c3

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

doc/source/cross_doc_coref.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ Requirements
6363
{
6464
"topic_id": "2_ecb", #Required (a topic is a set of multiple documents that share the same subject)
6565
"doc_id": "1_10.xml", #Required (the article or document id this mention belong to)
66-
"mention_head": "Josh", #Optional
67-
"mention_head_lemma": "josh", #Optional
68-
"mention_head_pos": "NOUN", #Optional (part of speech)
69-
"mention_ner": null, #Optional (named entity recognition)
70-
"mention_type": "HUM", #Optional (for debugging)
7166
"sent_id": 0, #Optional (mention sentence number in document)
7267
"tokens_number": [ #Optional (the token number in sentence, will be required when using Within doc entities)
7368
13
@@ -77,11 +72,6 @@ Requirements
7772
{
7873
"topic_id": "2_ecb", #Required
7974
"doc_id": "1_11.xml",
80-
"mention_head": "Reid",
81-
"mention_head_lemma": "reid",
82-
"mention_head_pos": "PROPN",
83-
"mention_ner": "PERSON",
84-
"mention_type": "HUM",
8575
"sent_id": 0,
8676
"tokens_number": [
8777
3
@@ -165,8 +155,10 @@ Code Example
165155
166156
entity_config.gold_mentions_file = '<Replace with your entity mentions json file>'
167157
168-
# Set the location of your resources,
169-
# Use the default values if can
158+
# CDCResources hold default attribute values that might need to be change,
159+
# (using the defaults values in this example), use to configure attributes
160+
# such as resources files location, output directory, resources init methods and other.
161+
# check in class and see if any attributes require change in your set-up
170162
resource_location = CDCResources()
171163
172164
# create a new cross doc resources, with all needed semantic relation models

doc/source/identifying_semantic_relation.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,8 @@ Each script requires a **mentions** file in JSON format as seen below. This file
253253
254254
[
255255
{ # Mention 1
256-
"mention_head": "rep", #Optional
257-
"mention_head_lemma": "rep", #Optional
258-
"tokens_str": "rep" #Required
256+
"tokens_str": "Intel" #Required,
257+
"context": "Intel is the world's second largest and second highest valued semiconductor chip maker" #Optional (used in Elmo)
259258
},
260259
{ # Mention 2
261260
"tokens_str": "Tara Reid"

examples/cross_doc_coref/cross_doc_coref_sieves.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ def run_example():
5050
entity_config.gold_mentions_file = LIBRARY_ROOT + \
5151
'/datasets/ecb/ecb_all_entity_mentions.json'
5252

53-
# CDCResources hold attribute that might need to be changed (using defaults values here),
54-
# attributes such as resources files location, output directory and other.
55-
# check and see if any require change in your set-up
53+
# CDCResources hold default attribute values that might need to be change,
54+
# (using the defaults values in this example), use to configure attributes
55+
# such as resources files location, output directory, resources init methods and other.
56+
# check in class and see if any attributes require change in your set-up
5657
resource_location = CDCResources()
5758
resources = CDCSettings(resource_location, event_config, entity_config)
5859

0 commit comments

Comments
 (0)