Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChronoLastOperator set_modifier() method issue #102

Open
AmyOlex opened this issue Jun 7, 2020 · 0 comments
Open

ChronoLastOperator set_modifier() method issue #102

AmyOlex opened this issue Jun 7, 2020 · 0 comments

Comments

@AmyOlex
Copy link
Owner

AmyOlex commented Jun 7, 2020

NOW PARSING PHRASE: early am hours of night

TOFIX: PeriodInterval.py @ line 304: convert to using the dictionary.
XXXXXXXXX
38 early am hours of night <4436,4459> Type: None Mod: None Value: None DocTime: 2017-01-10 00:00:00
46entity Modifier
47entity AMPM-Of-Day
48entity Part-Of-Day
49entity Period
50entity Last
Traceback (most recent call last):
File "Chrono.py", line 186, in
chrono_master_list, my_chrono_ID_counter, timex_phrases = BuildEntities.buildChronoList(tempPhrases, my_chrono_ID_counter, chroList, (classifier, args.m), feats, doctime)
File "/Users/alolex/Desktop/CCTR_Git_Repos/Chrono/Chrono/BuildEntities.py", line 121, in buildChronoList
tmplist, chrono_id = buildSubIntervals(chrono_tmp_list, chrono_id, dct, ref_list)
File "/Users/alolex/Desktop/CCTR_Git_Repos/Chrono/Chrono/BuildEntities.py", line 296, in buildSubIntervals
chrono_list[period].set_modifier(chrono_list[modifier].get_id())
TypeError: set_modifier() takes 1 positional argument but 2 were given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant