搜索
标签云
AI
Android
ArchLinux
Awesome WM
Coding
FLOSS
GitLab
Journal
ML
Mac OS X
NLP
OJ
OO
OpenWrt
Programming Language
PulseAudio
Qt
RQNOJ
Rocket
Rust
SNS
Server
TiddlyWiki
UML
Web Framework
Windows 7
XPS 13 9343
acer 5745g
alsa
audio
bbswitch
bluetooth
ddwrt
dkms
ext4
federated
fonosfera
howto
java
kde
linux
lxc
mount
nwauf
python
ruijie
shell
static website
superblock
usb
windows
winsock
《烏合之衆》
中醫
互聯
互聯網
傳統漢字
刷機
合同異
名
壞塊
學藝不精
安全
己見
心理學
懷
所思
拼音文字
文言
新文化運動
析世
概念
漢字
漢字簡化
漢語文
現代
現代醫學
用戶
異道
發行版
白話
硬盤
科學
簡化字
繁體字
群體心理學
翻譯用語
英語文
華夏
西醫
解题报告
觸摸板
路由器
辯辭
迷信
逸事
隱私
離堅白
分类
声明
鏈。。。
存档
匆匆过客
89055
功能
直覺上的Hobbs算法
註:文中“(即……)”形式的內容爲輔助理解本質的內容,並非算法內容。
算法分成幾個按順序的部分,每部分如果匹配上,則直接返回,否則往下走。“匹配”的標準爲:agreement等正確,同時滿足當前部分的要求。
整體邏輯/基本想法
算法可大體分爲三個部分:
-
在當前句子中尋找(過程較爲複雜,後面詳細說明)
- 在目標節點左側進行尋找
- 找完還沒找到則在右側進行尋找,但不進入NP和S節點
-
(如果找不到或沒有合適的)在前面的句子中尋找(如果找不到則繼續向前直到找到爲止)
- 過程十分簡單:以從左向右、寬度優先爲原則遍歷子樹,尋找匹配的NP
算法過程
算法初始化:從目標代詞(記爲T)所在的NP節點(記爲“當前節點”和/或“X”)開始(即NP->Pron規則中的NP)。
算法唯一循環:
- 尋找X之上最近的NP或S節點作爲當前節點,替換原先的X。
- 以從左向右、寬度優先爲原則,尋找當前節點X的子樹中(同時在T到X路徑左側)第一個匹配的NP
-
若X是S,則看前一個句子的語法樹(見上面)。(只有兩種情況會滿足該要求:
- T是句子中(從左往右數)第一個NP(即該句子爲以目標代詞爲主語的句子,或是以目標代詞爲賓語的祈使句等),則首次進入則會遇到該規則
- 循環回來遇到S(即尋找完當前句子而沒有找到相匹配的NP)
- 尋找X之上最近的NP或S節點作爲當前節點,替換原先的X。
- 如果X是NP,而且從T到X的路徑中沒有經過Nominal節點(即T並非X這個NP的定語),則試圖匹配X
- 以從左向右、寬度優先爲原則,尋找當前節點X的子樹中(同時在T到X路徑左側)第一個匹配的NP
- 如果X是S(即左側已找完),則尋找T到S路徑右側的所有子樹中尋找相匹配的NP。此時如果遇到NP和S,不進入其子樹。
- (若如果仍未匹配上)回到3
(最近在爲NLP的(高速入門)課準備考試,於是也在看J&M的Speech and Language Processing。其中關於Hobbs的描述看得很頭痛,於是dump一下自己的理解。)
- 无匹配
2021年9月24日 13:27
Maids will assist you to to handle any of these tasks. You might hire them to add this move-in method of service if that is definitely all you have. On other hand, you might hire them an additional after you may have moved set for long-term, regular care of the home. As your busy qualified, you do not possess the time for them to put into using this method on your, but you may still have help for any cleanup significantly more quickly than you know.
2022年9月18日 09:36
Those Class 9th Standard Students studying in Uttar Pradesh State Board of High School and Intermediate Education, Prayagraj Board can download the UP Board 9th Class Model Paper 2023 with Mock Test and Practice Questions designed by subject experts of UPMPS and others have designed and suggested for Paper-1 & Paper- exams held in Term1 & Term 2 of the Course to both SCERT & NCERT Students. UP Board Model Paper Class 9 Every Student of 9th Standard studied in Hindi Medium, English Medium and Urdu Medium Schools of Madhyamik Shiksha Parishad can download UP Board Madhyamik Question Paper 2023 for Class 9 with Answers for All Languages.
2023年5月03日 17:30
Booksyllabus 2023 is open in PDF download. directorate of Government Assessment, Open Test on June 2023. Snap on the association of the specific subject referred to in the table underneath. booksyllabus.com A Pdf record will be opened on the screen. Snap on ‘Free Download’ Option and Download the We gave standard syllabus 2023 to all subjects both in english and tamil Medium.
2023年7月11日 16:19
Bravo TV is one of the most famous pay television networks in the United States. This channel is one of the NBC Universal families and acts as an alternative for Comcast. bravotv.com/link activate code Bravo TV broadcasts worldwide and mostly wants to focus on movies and events. Activation Code is the password for activating the entertainment service. You will be capable of activating your Smart TV using this method.
2023年8月21日 15:57
Karnataka 10th Class Exam date Sheet 2024 available at Official Website, KSEEB Regulates and Supervises the System of Secondary Education in Karnataka State, It Executes and Governs Various Activities that include KSEEB 10th Class Syllabus 2024 Devising of Courses of Study, Prescribing Syllabus,This Karnataka High School Level Exam Appear Every Year More than 45 Laks of Students, Karnataka Secondary Education Students Studying Karnataka Class Revised Syllabus 2024 helps Students to Learn Logic and order and hence,Karnataka Board Class Syllabus 2024 is Designed in Accordance with the NCERT Based Guidelines and helps Students to get an Overview of the Kannada, English Medium All Subject.
2024年1月23日 07:55
JNANABHUMI AP provides all the latest educational updates and many more. The main concept or our aim behind this website has been the will to provide resources with full information on each topic jnanabhumiap.in which can be accessed through the Internet. To ensure that every reader gets what is important and worthy about the topic they search and link to hear from us.