/usr/share/festival/dicts/upc/upclex_postlex.scm is in festival-ca 3.0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Lexicon, LTS and Postlexical rules for upc_catalan
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Adapted for Catalan by the UPC team
;;;
;;; (c) Antonio Bonafonte
;;; Universitat Politècnica de Catalunya, Barcelona, Spain
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Postlexical Rules
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (upc_catalan::postlex_rule1 utt)
"(upc_ca::postlex_rule1 utt)
A postlexical rule form adding the phoneme /r/ to an infinitive verb followed
with a dashed weak pronoun (pronoms febles amb guio)"
(mapcar
(lambda (w)
;; do something
(cond ((and (string-matches (item.name w) "-.*")
;; item starts with a dash "-"
(string-matches (item.feat w "p.name") ".*r$")
;; previous word ends with the character "r"
(not (string-matches (item.feat w "R:SylStructure.daughtern.daughtern.name" ) "r"))
;; last phoneme of previous word is NOT "r"
)
; (format t "upc_catalan::postlex_rule1 - add r to previous word (%s) %s\n" (item.feat w "p.name") (item.name w))
(set! last_pho (item.relation (item.daughtern (item.relation.daughtern (item.prev w) 'SylStructure)) 'Segment))
(item.relation.insert last_pho 'Segment (list "r") 'after)
(item.relation.insert last_pho 'SylStructure (item.next last_pho) 'after)))
)
(utt.relation.items utt 'Word))
utt)
(define (upc_catalan::postlex_rule2 utt)
"(upc_ca::postlex_rule1 utt)
A postlexical rule form correcting phenomena over word boundaries."
(mapcar
(lambda (s)
;; do something
)
(utt.relation.items utt 'Segment))
utt)
(provide 'upclex_postlex)
|