Skip to content

Commit

Permalink
Merge pull request #94 from Knox-AAU/93-remove-directory-path-from-fi…
Browse files Browse the repository at this point in the history
…lename-prop-in-json-output

remove dir from filename
  • Loading branch information
FredTheNoob authored Dec 8, 2023
2 parents 07cb9ba + 6684264 commit c3bba45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/GetSpacyData.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def BuildJSONFromEntities(entities: List[EntityLinked], doc, fileName: str) -> J

# Create the final JSON structure
final_json = {
"fileName": fileName,
"fileName": fileName.split("/")[-1],
"language": DetectLang(doc),
"metadataId":"7467628c-ad77-4bd7-9810-5f3930796fb5",
"sentences": sentences_json,
Expand Down

0 comments on commit c3bba45

Please sign in to comment.