Skip to content

Commit

Permalink
Absolute paths for LKB but with ~
Browse files Browse the repository at this point in the history
  • Loading branch information
olzama committed Dec 4, 2023
1 parent 12e9b60 commit a7732d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lkb/globals.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@
;;; Preprocessing is performed by FreeLing, and its output is converted to the
;;; DELPH-IN YY format for parsing.
;;;
(defparameter *yy-application* "bash ~/delphin/srg/util/srg-yy-python-api.sh")
(defparameter *yy-application* "bash ~/delphin/SRG/grammar/srg/util/srg-yy-python-api.sh")
2 changes: 1 addition & 1 deletion util/freeling2lkb.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


if __name__ == "__main__":
fuse, replace, no_disambiguate, output = parse_sppp_dat.parse_sppp('/home/olzama/delphin/srg/util/freeling_api/srg-freeling.dat')
fuse, replace, no_disambiguate, output = parse_sppp_dat.parse_sppp('~/delphin/SRG/grammar/srg/util/freeling_api/srg-freeling.dat')
override_dicts = {'fuse': fuse, 'replace': replace, 'no_disambiguate': no_disambiguate, 'output': output}

# read input from file or standard input, one sentence per line. Put each
Expand Down
2 changes: 1 addition & 1 deletion util/tokenize_and_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self):

# Location of FreeLing configuration files.
self.DATA = os.environ["FREELINGDIR"]+"/share/freeling/" #usermap; currently empty
self.CUSTOM_DATA = "/home/olzama/delphin/srg/util/freeling_api/srg-freeling.dat"
self.CUSTOM_DATA = "~/delphin/SRG/grammar/srg/util/freeling_api/srg-freeling.dat"
# Init locales
pyfreeling_api.util_init_locale("default")
# create language detector. Used just to show it. Results are printed
Expand Down

0 comments on commit a7732d4

Please sign in to comment.