狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

CISC3025代寫、代做c++,Java程序設計

時間:2024-04-03  來源:  作者: 我要糾錯



University of Macau
CISC3025 - Natural Language Processing
Project#3, 2023/2024
(Due date: 18th April)
Person Name ('Named Entity') Recognition
This is a group project with two students at most. You need to enroll in a group here. In this project,
you will be building a maximum entropy model (MEM) for identifying person names in newswire
texts (Label=PERSON or Label=O). We have provided all of the machinery for training and testing
your MEM, but we have left the feature set woefully inadequate. Your job is to modify the code
for generating features so that it produces a much more sensible, complete, and higher-performing
set of features.
NOTE: In this project, we expect you to design a web application for demonstrating your final
model. You need to design a web page that provides at least such a simple function: 1) User inputs
sentence; 2) Output the named entity recognition results. Of course, more functionalities in your
web application are highly encouraged. For example, you can integrate the previous project’s work,
i.e., text classification, into your project (It would be very cool!).
You NEED to submit:
• Runnable program
o You need to implement a Named Entity Recognition model based on the given starter
codes
• Model file
o Once you have finished the designing of your features and made it functions well, it
will dump a model file (‘model.pkl’) automatically. We will use it to evaluate
your model.
• Web application
o You also need to develop a web application (freestyle, no restriction on programming
languages) to demonstrate your NER model or even more NLP functions.
o Obviously, you need to learn how to call your python project when building the web
application.
• Report
o You should finish a report to introduce your work on this project. Your report should
contain the following content:
§ Introduction;
§ Description of the methods, implementation, and additional consideration to
optimize your model;
§ Evaluations and discussions about your findings;
2
§ Conclusion and future work suggestions.
• Presentation
o You need to give a 8-minute presentation in the class to introduce your work followed
by a 3-minute Q&A section. The content of the presentation may refer to the report.
Starter Code
In the starter code, we have provided you with three simple starter features, but you should be able
to improve substantially on them. We recommend experimenting with orthographic information,
gazetteers, and the surrounding words, and we also encourage you to think beyond these
suggestions.
The file you will be modifying is MEM.py
Adding Features to the Code
You will create the features for the word at the given position, with the given previous label. You
may condition on any word in the sequence (and its relative position), not just the current word
because they are all observed. You may not condition on any labels other than the previous one.
You need to give a unique name for each feature. The system will use this unique name in training
to set the weight for that feature. At the testing time, the system will use the name of this feature
and its weight to make a classification decision.
Types of features to include
Your features should not just be the words themselves. The features can represent any property of
the word, context, or additional knowledge.
For example, the case of a word is a good predictor for a person's name, so you might want to add
a feature to capture whether a given word was lowercase, Titlecase, CamelCase, ALLCAP, etc.
def features(self, words, previous_label, position):
 features = {}
 """ Baseline Features """
 current_word = words[position]
 features['has_(%s)' % current_word] = 1
 features['prev_label'] = previous_label
 if current_word[0].isupper():
 features['Titlecase'] = 1
 #===== TODO: Add your features here =======#
 #...
 #=============== TODO: Done ================#
 return features
3
Imagine you saw the word “Jenny”. In addition to the feature for the word itself (as above), you
could add a feature to indicate it was in Title case, like:
You might encounter an unknown word in the test set, but if you know it begins with a capital letter
then this might be evidence that helps with the correct prediction.
Choosing the correct features is an important part of natural language processing. It is as much art
as science: some trial and error is inevitable, but you should see your accuracy increasing as you
add new types of features.
The name of a feature is not different from an ID number. You can use assign any name for a
feature as long as it is unique. For example, you can use “case=Title” instead of “Titlecase”.
Running the Program
We have provided you with a training set and a development set. We will be running your programs
on an unseen test set, so you should try to make your features as general as possible. Your goal
should be to increase F1 on the dev set, which is the harmonic mean of the precision and the recall.
You can use three different command flags (‘-t’, ‘-d’, ‘-s’) to train, test, and show respectively.
These flags can be used independently or jointly. If you run the program as it is, you should see the
following training process:
Afterward, it can print out your score on the dev set.
You can also give it an additional flag, -s, and have it show verbose sample results. The first column
is the word, the last two columns are your program's prediction of the word’s probability to be
$ python run.py -d
Testing classifier...
f_score = 0.8715
accuracy = 0.9641
recall = 0.7143
precision = 0.9642
if current_word[0].isupper():
features['Titlecase'] = 1
$ cd NER
$ python run.py -t
Training classifier...
 ==> Training (5 iterations)
 Iteration Log-Likelihood Accuracy
 ---------------------------------------
 1 -0.69315 0.055
 2 -0.09383 0.946
 3 -0.08134 0.968
 4 -0.07136 0.969
 Final -0.06330 0.969
4
PERSON or O. The star ‘*’ indicates the gold result. This should help you do error analysis and
properly target your features.
Where to make your changes?
1. Function ‘features()’ in MEM.py
2. You can modify the “Customization” part in run.py in order to debug more efficiently and
properly. It should be noted that your final submitted model should be trained under at least 20
iterations.
3. You may need to add a function “predict_sentence( )” in class MEM( ) to output predictions
and integrate with your web applications.
Changes beyond these, if you choose to make any, should be done with caution.
Grading
The assignment will be graded based on your codes, reports, and most importantly final
presentation.
$ python run.py -s
 Words P(PERSON) P(O)
----------------------------------------
 EU 0.0544 *0.9456
 rejects 0.0286 *0.9714
 German 0.0544 *0.9456
 call 0.0286 *0.9714
 to 0.0284 *0.9716
 boycott 0.0286 *0.9714
 British 0.0544 *0.9456
 lamb 0.0286 *0.9714
 . 0.0281 *0.9719
 Peter *0.4059 0.5941
 Blackburn *0.5057 0.4943
 BRUSSELS 0.4977 *0.5023
 1996-08-22 0.0286 *0.9714
 The 0.0544 *0.9456
 European 0.0544 *0.9456
 Commission 0.0544 *0.9456
 said 0.0258 *0.9742
 on 0.0283 *0.9717
 Thursday 0.0544 *0.9456
 it 0.0286 *0.9714
#====== Customization ======
BETA = 0.5
MAX_ITER = 5 # max training iteration
BOUND = (0, 20) # the desired position bound of samples
#==========================
5
Tips
• Start early! This project may take longer than the previous assignments if you are aiming for
the perfect score.
• Generalize your features. For example, if you're adding the above "case=Title" feature, think
about whether there is any pattern that is not captured by the feature. Would the "case=Title"
feature capture "O'Gorman"?
• When you add a new feature, think about whether it would have a positive or negative weight
for PERSON and O tags (these are the only tags for this assignment).

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp






















 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:COMP3334代做、代寫Python程序語言
  • 下一篇:代寫CSC 330、代做C/C++編程語言
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    日韩成人av免费| 国产永久免费网站| 成人国产一区二区三区| 国产免费又粗又猛又爽| 成年人在线看片| 成人免费在线小视频| 香港三级日本三级a视频| 一区中文字幕在线观看| 亚洲一二三不卡| 九九热精品国产| 亚洲欧美视频二区| 亚洲日本黄色片| 永久免费在线看片视频| 中国一级黄色录像| 日本五级黄色片| 国产人妻777人伦精品hd| 欧美一级爱爱视频| 欧美一级视频免费看| 黄色片视频在线免费观看| 国产裸体舞一区二区三区| 国产一级特黄a大片免费| 亚洲欧洲日本精品| av中文字幕av| 91视频 -- 69xx| 午夜宅男在线视频| 欧美一级免费在线| www.好吊操| 青青在线视频免费| 韩国黄色一级大片| 奇米影视亚洲色图| 男人的天堂日韩| 国产又爽又黄ai换脸| 真人抽搐一进一出视频| 国产91对白刺激露脸在线观看| 一本久道综合色婷婷五月| 不卡的在线视频| wwwwww欧美| 国产天堂在线播放| 日韩精品一区二区免费| www黄色av| 黄黄视频在线观看| 好男人www社区| 黄色一级片在线看| 欧美激情国内自拍| 亚洲人成色77777| 亚洲成人动漫在线| 美女喷白浆视频| 久久久久99精品成人片| 精品久久久99| 美女网站免费观看视频| 日本wwwcom| 一级黄色大片儿| 日本激情综合网| 黄色免费福利视频| 国产爆乳无码一区二区麻豆| 嫩草av久久伊人妇女超级a| 国产手机视频在线观看| 色www免费视频| 欧美性猛交久久久乱大交小说| 麻豆tv在线播放| 日本美女爱爱视频| 五月婷婷六月合| 黄色一级二级三级| 欧美一级黄色片视频| 69sex久久精品国产麻豆| 大桥未久一区二区三区| 香蕉视频在线网址| 2025韩国大尺度电影| 免费在线观看污网站| 牛夜精品久久久久久久| 日韩一级在线免费观看| 成人黄色片视频| 青青草原av在线播放| 日本一本二本在线观看| 噜噜噜久久亚洲精品国产品麻豆| 成品人视频ww入口| 久久久久99精品成人片| 久操网在线观看| 999在线观看视频| 欧美 国产 综合| 六月激情综合网| 精品视频无码一区二区三区| 国产91在线视频观看| 日韩av一二三四| 污版视频在线观看| caoporm在线视频| 污视频在线观看免费网站| 久久久久久久久影视| 欧美激情亚洲天堂| 日本少妇高潮喷水视频| 成人性生生活性生交12| 久久久久久综合网| 亚洲乱码日产精品bd在线观看| 777久久精品一区二区三区无码| 日韩免费在线观看av| 国产中文字幕免费观看| 亚洲最大天堂网| 91大学生片黄在线观看| www国产黄色| 国产精品久久久久久9999| 国产欧美123| 国产精品69页| 国产成人永久免费视频| 天天操天天爱天天爽| 亚洲天堂第一区| 好男人www社区| 97在线国产视频| 992tv人人草| 苍井空浴缸大战猛男120分钟| 成人av毛片在线观看| 日本成年人网址| 热久久最新地址| 日本男人操女人| 成人免费性视频| 久久视频免费在线| 国产三级精品三级在线| 国产第一页视频| 男人日女人下面视频| 玖玖精品在线视频| 欧美美女性视频| 亚洲五月天综合| 久久久免费视频网站| 日本免费a视频| 超碰超碰超碰超碰超碰| 久久精品一二三四| 国产超碰在线播放| www.四虎成人| 亚洲精品乱码久久久久久自慰 | 一区二区三区一级片| 国产精品亚洲a| 中国丰满人妻videoshd| 国产片侵犯亲女视频播放| 久久久国产精华液999999| 久久久久久久久久久久久国产精品| 国产aaa免费视频| 日本大片免费看| 欧美黄网在线观看| 日韩精品一区在线视频| www.xxx麻豆| 男人添女荫道口女人有什么感觉| 中文字幕第50页| 欧美激情亚洲天堂| 蜜桃传媒一区二区三区| 黄色片视频在线免费观看| 美女av免费在线观看| 97成人在线观看视频| 免费看国产曰批40分钟| www.av片| 日韩中文字幕免费在线| 日韩中文字幕a| 久久视频免费在线| 久久综合色视频| 国产成人黄色网址| avove在线观看| 少妇高潮喷水在线观看| 大肉大捧一进一出好爽动态图| 青青草av网站| 在线观看av的网址| av7777777| 亚洲最大综合网| 影音先锋男人的网站| 日韩av三级在线| 色网站在线视频| 国产免费黄色一级片| 亚洲免费看av| 黄色一级大片免费| 日本三区在线观看| 国产在线拍揄自揄拍无码| 精品国产成人av在线免| 91xxx视频| 日本xxxx黄色| 精品无码国模私拍视频| 亚洲制服在线观看| 无码精品a∨在线观看中文| av中文字幕网址| 国产精品第12页| 国产 日韩 欧美在线| 少妇熟女一区二区| 九热视频在线观看| 91av资源网| 日韩 欧美 视频| 一级全黄肉体裸体全过程| 国产日韩成人内射视频| 久艹在线免费观看| 欧美精品一区二区性色a+v| 成人亚洲精品777777大片| 日韩xxxx视频| 免费的av在线| 青青在线免费视频| 性欧美18一19内谢| www.午夜av| 亚洲综合婷婷久久| www亚洲成人| 一区二区三区 欧美| 国产精品欧美激情在线观看| 毛片在线视频播放| 黄色a级片免费看| www.日本在线视频| 国产成人在线小视频| 日韩成人三级视频|