Skip to content

Commit

Permalink
remove dir from filename
Browse files Browse the repository at this point in the history
  • Loading branch information
FredTheNoob committed Dec 1, 2023
1 parent 2bb2e9e commit 8f9f698
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 8f9f698

Please sign in to comment.