美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

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

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    欧美视频一区二区在线| 日韩av无码一区二区三区不卡| 丁香花五月激情| av天堂一区二区| www.99re6| 免费污网站在线观看| 美女搡bbb又爽又猛又黄www| 国产高清在线免费观看| 婷婷综合在线视频| 超碰人人干人人| 97超碰在线免费观看| 极品白嫩丰满美女无套| 妖精视频一区二区| 欧美无人区码suv| www.88av| 成人网站免费观看| 美女被到爽高潮视频| 蜜桃av免费看| 极品蜜桃臀肥臀-x88av| 青青青视频在线免费观看| 亚洲最大成人网站| 毛片久久久久久| 91香蕉视频网| 波多野结衣不卡视频| 日本少妇激三级做爰在线| 爱情岛论坛亚洲自拍| 人妻互换一二三区激情视频| 久久久国产精品无码| 97超碰在线资源| 国产大屁股喷水视频在线观看| 人妻久久一区二区| 岛国精品资源网站| 黄大色黄女片18免费| 综合五月激情网| 午夜剧场免费看| 国产黄色录像视频| 国产精品日日摸夜夜爽| 欧美丰满美乳xxⅹ高潮www| 日韩欧美国产成人精品免费| 国产女主播在线播放| 女人黄色一级片| 第一页在线视频| 91ts人妖另类精品系列| 催眠调教后宫乱淫校园| 成人一级片免费看| 国产精品一区二区入口九绯色| eeuss中文字幕| 麻豆精品国产传媒av| 精品少妇一区二区三区密爱| 人妻 丝袜美腿 中文字幕| 成人一级片免费看| 喷水视频在线观看| 北条麻妃在线观看视频| 国产人妻一区二区| 亚洲av成人片色在线观看高潮| 国产第一页精品| 国产精品815.cc红桃| 国产精品亚洲一区二区无码| 久久国产波多野结衣| 纪美影视在线观看电视版使用方法| 少妇熟女视频一区二区三区| ass极品国模人体欣赏| 少妇大叫太粗太大爽一区二区| 爱情岛论坛亚洲自拍| 中日韩一级黄色片| 欧美aaa级片| 在线观看亚洲大片短视频| 久久久久久久人妻无码中文字幕爆| 黑鬼狂亚洲人videos| 亚洲熟女少妇一区二区| 国产成人免费观看网站| 亚洲精品一区二区三区影院忠贞| 日本japanese极品少妇| 中文字幕5566| 韩国女同性做爰三级| mm131丰满少妇人体欣赏图| 免费在线观看a视频| 欧美性受xxxx黑人| 夫妻性生活毛片| 99鲁鲁精品一区二区三区| 麻豆天美蜜桃91| 国产高潮失禁喷水爽到抽搐 | 久久久久久国产免费a片| 国产精品成人无码专区| 亚洲熟女一区二区| 丰满圆润老女人hd| 丰满的亚洲女人毛茸茸| 欧美性x x x| 精品人妻一区二区免费视频| 国产精品扒开腿做爽爽| 超碰人人干人人| 国产熟妇久久777777| 无码h肉动漫在线观看| 男人的天堂av网| 看免费黄色录像| 日本不卡视频一区| 亚洲图片第一页| 老熟女高潮一区二区三区| 亚洲欧美高清在线| 鲁丝一区二区三区| 97精品人妻一区二区三区蜜桃| 免费成年人视频在线观看| 亚洲美女精品视频| 亚洲AV无码国产成人久久| 999精品久久久| 亚洲午夜久久久久久久久红桃 | 欧美一级片在线免费观看| 美女扒开腿免费视频| 精品亚洲乱码一区二区| 特级特黄刘亦菲aaa级| 亚洲精品国产精品国自| 国产一级免费片| 久久国产波多野结衣| 精品无码在线视频| avtt中文字幕| 免费成人蒂法网站| 老司机午夜免费福利| 国产十六处破外女视频| 国产又粗又黄又猛| 国产人妻大战黑人20p| 欧美大片免费播放器| 污污内射在线观看一区二区少妇 | 国产精品国产三级国产传播| 性欧美丰满熟妇xxxx性仙踪林| 粉嫩av性色av蜜臀av网站| 懂色av蜜桃av| 欧美性受xxxx黑人| 日韩精品无码一区二区三区久久久| 亚洲专区区免费| 性xxxxxxxxx| 男人操女人下面视频| 婷婷在线精品视频| 人妻久久一区二区| 欧美性猛交乱大交| 手机在线播放av| 人妻 丝袜美腿 中文字幕| 久久久老熟女一区二区三区91| 亚洲最大的黄色网址| 中文字幕另类日韩欧美亚洲嫩草| 亚洲xxxx3d动漫| 性色av浪潮av| 艳妇乳肉亭妇荡乳av| 妖精视频一区二区| 亚洲最大成人网站| 婷婷丁香综合网| 国产免费久久久久| 少妇一级淫片免费放播放| 97人妻天天摸天天爽天天| theav精尽人亡av| 国产精品理论在线| 97免费公开视频| 久久人人妻人人人人妻性色av| www.久久av| 欧美xxxooo| 国产xxxx视频| 欧美福利第一页| 久久久久久久久久影视| 亚洲精品国产91| 国产成人精品综合久久久久99 | 毛茸茸free性熟hd| 亚洲制服丝袜在线播放| 特级西西人体高清大胆| 国产97免费视频| 在哪里可以看毛片| fc2ppv在线播放| 国产精品果冻传媒| 永久免费未视频| 免费看黄色aaaaaa 片| 艳妇荡乳欲伦69影片| 性久久久久久久久久久| 国产日产精品一区二区三区的介绍| 蜜臀视频在线观看| 国产探花视频在线| 3d动漫精品啪啪一区二区下载| 成年人性生活视频| 美女100%露胸无遮挡| 影音先锋黄色资源| 色婷婷在线视频观看| av手机在线播放| 国产伦精品一区二区三区妓女| 成熟的女同志hd| 国产大学生自拍| 老熟妻内射精品一区| 亚洲一级黄色录像| 中文字幕被公侵犯的漂亮人妻| 你懂得在线视频| 成人手机在线免费视频| 日本人添下边视频免费| 中文字幕久久久久久久| 粉嫩av性色av蜜臀av网站| www亚洲色图| 国产又粗又猛又爽又黄的视频四季 | 精品国产大片大片大片| 玖草视频在线观看| 久久福利小视频| 欧美大片免费播放器| 美女又爽又黄视频毛茸茸| 美女100%露胸无遮挡| 精品无码在线观看| 亚洲精品自拍视频在线观看|