Add Scheduled, Deadlne date to Model Embeddings for Date Aware Search

This commit is contained in:
Debanjum Singh Solanky
2022-06-17 02:55:27 +03:00
parent cfbd5c4ecc
commit a2a08d1354
2 changed files with 13 additions and 1 deletions

View File

@@ -120,6 +120,16 @@ def convert_org_entries_to_jsonl(entries, verbose=0):
if verbose > 2:
print(f"Body: {entry.Body()}")
if entry.Scheduled():
entry_dict["Scheduled"] = entry.Scheduled().strftime("%Y-%m-%d")
if verbose > 2:
print(f"Scheduled: {entry.Scheduled().strftime('%Y-%m-%d')}")
if entry.Deadline():
entry_dict["Deadline"] = entry.Deadline().strftime("%Y-%m-%d")
if verbose > 2:
print(f"Deadline: {entry.Deadline().strftime('%Y-%m-%d')}")
if entry_dict:
entry_dict["Raw"] = f'{entry}'