久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    污污污污污污www网站免费| 在线观看18视频网站| aaa免费在线观看| 中日韩av在线播放| 亚洲成熟丰满熟妇高潮xxxxx| 欧美交换配乱吟粗大25p| 欧美日韩一区二区三区电影| 水蜜桃色314在线观看| 国产av天堂无码一区二区三区| 天天影视色综合| 亚洲欧美日韩三级| 欧美 日韩 国产 高清| 三级黄色片免费观看| 超碰10000| 国产成人美女视频| 欧美aⅴ在线观看| 毛片毛片毛片毛片毛片毛片毛片毛片毛片 | 亚欧精品在线视频| 少妇人妻在线视频| 国产大尺度在线观看| 欧美第一页浮力影院| 亚洲五月激情网| 日韩免费高清在线| 女人高潮一级片| 久久精品国产精品亚洲色婷婷| 99视频在线视频| 久久av秘一区二区三区| 黄黄视频在线观看| www.超碰97.com| 三年中国国语在线播放免费| 国自产拍偷拍精品啪啪一区二区| 超碰在线免费观看97| 天天干天天曰天天操| 182午夜在线观看| 欧美国产日韩在线播放| 久久久久久久久久久视频| 大地资源网在线观看免费官网| 婷婷激情5月天| 奇米影视四色在线| av无码精品一区二区三区| 一区二区传媒有限公司| 国产精品久久久久7777| 男女污污的视频| 精品www久久久久奶水| 国产91在线免费| 欧美s码亚洲码精品m码| 日本一道本久久| av网站大全免费| 91香蕉视频导航| 免费看黄色一级大片| 超碰97人人射妻| 久章草在线视频| 欧美视频第一区| 久久久久久久久久福利| 免费看a级黄色片| www.日日操| 欧美第一页浮力影院| 亚洲精品第三页| www.偷拍.com| 国产免费xxx| 国产又粗又猛又爽又黄的网站| 成人一区二区av| 免费网站在线观看视频| 国产成人永久免费视频| 成人免费性视频| 奇米精品一区二区三区| avav在线看| 九九九在线观看视频| www.精品在线| 四虎成人在线播放| 日韩中文字幕在线不卡| 日韩欧美一区二| 国产视频一区二区三区在线播放| 黑人粗进入欧美aaaaa| 欧美视频国产视频| 欧美一区二区中文字幕| 欧美成人黑人猛交| 最新国产黄色网址| 久久久久久久午夜| 青青在线视频观看| 亚洲免费黄色网| 在线观看免费黄色片| 人妻av无码专区| 黑鬼大战白妞高潮喷白浆| 中文字幕国内自拍| 异国色恋浪漫潭| 国产免费黄色小视频| 国产xxxxx视频| 一二三级黄色片| 欧美日韩视频免费| 91香蕉视频污版| 久久最新免费视频| 日韩免费视频播放| 极品粉嫩美女露脸啪啪| av日韩在线看| 人妻无码视频一区二区三区| 北条麻妃亚洲一区| 国产av天堂无码一区二区三区| 污片在线免费看| 中文字幕日韩精品无码内射| 国产淫片av片久久久久久| 久久久久久久久久毛片| 可以看毛片的网址| 色婷婷.com| 国产原创中文在线观看 | 日本网站在线看| 久久视频这里有精品| 国产精品久久久毛片| 国产欧美久久久久| 男女男精品视频站| 97超碰国产精品| www.久久91| 国产精品入口芒果| 在线看免费毛片| 玩弄中年熟妇正在播放| 黄色免费高清视频| 乱子伦视频在线看| 日本天堂免费a| 老司机午夜性大片| 国产精品秘入口18禁麻豆免会员| 日本一本草久p| 最新中文字幕2018| 国产免费黄色av| 大片在线观看网站免费收看| 日本人视频jizz页码69| 黄网站欧美内射| 一道本在线观看视频| 污污的网站18| 5月婷婷6月丁香| 国产1区2区3区中文字幕| 免费精品99久久国产综合精品应用| 国产极品在线视频| 成人一区二区av| 永久免费黄色片| 少妇网站在线观看| 日本成年人网址| 成人免费毛片在线观看| youjizz.com亚洲| 中文字幕第38页| aa免费在线观看| 青草视频在线观看视频| 人人妻人人澡人人爽精品欧美一区| 国产视频手机在线播放| 国产性xxxx18免费观看视频| 久久久性生活视频| 欧美这里只有精品| 一本—道久久a久久精品蜜桃| 天天综合网久久| 久久99久久久久久| 三年中文在线观看免费大全中国| 久久精品影视大全| 男女啪啪网站视频| 国产极品美女高潮无套久久久| 黄色www网站| 欧美国产激情视频| 成年人午夜视频在线观看| 国产va亚洲va在线va| 日韩精品一区在线视频| 日韩xxxx视频| 免费无码不卡视频在线观看| 天天夜碰日日摸日日澡性色av| 精品无码国模私拍视频| 国产成人无码精品久久久性色| 男女视频网站在线观看| 免费成人在线视频网站| 成人免费视频91| 免费国产黄色网址| 妺妺窝人体色www在线小说| 久草精品在线播放| 亚洲成人福利在线观看| 男女视频在线看| 亚洲黄色av片| 亚洲自拍偷拍一区二区三区| 日本人妻伦在线中文字幕| 日韩欧美猛交xxxxx无码| 久久成人福利视频| aⅴ在线免费观看| 蜜桃免费在线视频| 天天做天天干天天操| 国产又粗又硬又长| www.九色.com| 18岁网站在线观看| 国产天堂在线播放| 女同激情久久av久久| 国产精品一二三在线观看| 美脚丝袜脚交一区二区| 免费无遮挡无码永久视频| 男女啪啪网站视频| av噜噜在线观看| 欧日韩免费视频| 99视频精品免费| 亚洲第一精品区| 国模无码视频一区二区三区| 日韩福利视频在线| 日本一本在线视频| 免费成人午夜视频| 国产探花在线看| 黄色a级片免费看| 免费观看成人网| 天天爱天天做天天操|