Skip to content

Commit

Permalink
added doc string
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Mittal <[email protected]>
  • Loading branch information
shashank-iitbhu committed Mar 4, 2024
1 parent afe9ed8 commit 42bd042
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/scribe_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,19 @@ def get_language_words_to_ignore(language: str) -> list[str]:


def get_language_dir_path(language):
"""
Returns the directory path for a specific language within the Scribe-Data project.
Parameters
----------
language : str
The language for which the directory path is needed.
Returns
-------
str
The directory path for the specified language.
"""
PATH_TO_SCRIBE_ORG = os.path.dirname(sys.path[0]).split("Scribe-Data")[0]
return f"{PATH_TO_SCRIBE_ORG}/Scribe-Data/src/scribe_data/extract_transform/languages/{language}"

Expand Down

0 comments on commit 42bd042

Please sign in to comment.