0
124 次瀏覽

Apertium 轉換引擎會在您的來源文字中搜尋模式。它所搜尋的模式是您在每條規則中定義的那些。有些模式可能只有一個單字,有些模式可能包含多個單字。轉換引擎會先嘗試比對最長的模式,然後逐漸轉向較短的模式。這表示五個單字的模式會優先於三個單字的模式被使用(假設一組單字同時符合這兩個模式)。當存在多個長度相同的模式時,列表中第一個列出的模式具有優先權。這意味著在某些情況下,您的規則順序將很重要。

轉換引擎會從第一個單字開始,依序搜尋文字中的匹配。它絕不會在文字的某個位置找到匹配後,再回到文字較前的位置。

另一個重要的概念是,轉換引擎只會針對所匹配的模式處理單字一次。處理完畢後,這些單字不會再被檢查以尋找其他匹配。換句話說,模式不能以重疊的方式套用。例如,如果您有一條規則匹配 限定詞-名詞,另一條規則匹配 名詞-形容詞,當處理形式為 限定詞-名詞-形容詞 的句子時。引擎會使用先列出的規則,然後丟棄這三個單字並繼續處理其他單字。第二條規則不會被套用。另一種描述方式是說,引擎以獨立的區塊來處理單字。

如果 Apertium 轉換引擎找到匹配,它會執行您規則中的動作部分。如果引擎找不到某個單字的匹配,它會根據雙語字典中的內容進行預設翻譯。請參閱「規則如何被套用」。

機器翻譯自 English
FLExTrans (336 點) 提出
已重新顯示 | 124 次瀏覽

登入註冊 以回答此問題。

相關問題

+2
4 個回答 553 次瀏覽
重新發佈自 @KimB 謝謝 anon044949 我們從 PT9 之前就開始使用基於詞幹(stems)的匹配(Match) 我的問題不在於如何在 PT 中進行逐字對照(interlinearizing);而是 PT 現在似乎正在與 FLEx 雙向共享其現有的形態學 ... 麼情況?在這種情況下,舊的形態素切分/釋義會被發送到 FW 嗎? 提前感謝任何見解
[Expert]
Jeff_Shrum
2.9k 提出
已提問 10月 9, 2020
0
2 個回答 370 次瀏覽
I was poking around in settings and I noticed I have the option to use this forum in Mailing list mode. So I created ... writing this message and might choose not to send it to me
[Moderator]
dhigby
1.3k 提出
已提問 1月 19, 2017
0
6 個回答 677 次瀏覽
Can someone explain the Paratext registration process to me? When a new user or their project leader or support person ... done, any Joe Bloggs could register and get approved.
wdavidhj 1.4k 提出 已提問 9月 17, 2015
0
0 個回答 167 次瀏覽
Continuing the discussion from Poll: Allow out of sequence verse numbers in cross references?: Poll: Allow out of sequence ... latest vote (only) is reflected in the poll counts.
匿名 提出 已提問 5月 19, 2015
0
2 個回答 234 次瀏覽
我只是想知道,如果使用者在 Paratext 執行傳送/接收(send/receive)期間嘗試使用 PTXPrint(包括需要讀取 Paratext 資料的任務),會發生什麼情況?還是我們應該先等待傳送/接收完成?另外,如果傳送/接收的對象是網際網路、Chorus Hub 或隨身碟,會有差別嗎?
Ben Pehrson 280 提出 已提問 5月 4, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,049 個問題
6,007 個回答
5,673 則評論
2,029 位使用者