日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              国产精品99免视看9| 玖玖精品视频| 久久国产精品久久久久久| 午夜一级久久| 久久频这里精品99香蕉| 麻豆国产精品777777在线 | 久久久青草婷婷精品综合日韩| 久久久人成影片一区二区三区观看| 快射av在线播放一区| 欧美日本在线看| 国产午夜精品视频| 亚洲日本视频| 亚洲欧美日韩一区二区三区在线观看| 久久九九热re6这里有精品| 欧美精品91| 国产日韩欧美一区二区| 亚洲三级免费| 性刺激综合网| 欧美乱妇高清无乱码| 国产亚洲视频在线观看| 日韩亚洲一区二区| 久久久亚洲欧洲日产国码αv | 亚洲国产精品t66y| 日韩亚洲欧美中文三级| 亚洲欧美日韩天堂| 欧美一区影院| 欧美日韩精品中文字幕| 黄色免费成人| 亚洲欧美日韩一区| 欧美久久婷婷综合色| 国产日韩欧美在线看| 一区二区三区精品国产| 免费国产一区二区| 国产一区二区三区高清播放| 一区二区三区|亚洲午夜| 乱码第一页成人| 黄色欧美日韩| 久久国产精彩视频| 国产精品视频一区二区三区| 一本久久综合亚洲鲁鲁| 欧美大片国产精品| 亚洲高清精品中出| 久久中文欧美| 韩日精品视频| 久久电影一区| 韩国在线一区| 久久精品99| 国产亚洲欧美一区| 欧美一区免费| 国产亚洲精品bt天堂精选| 亚洲影视综合| 国产精品日韩欧美综合| 亚洲婷婷综合久久一本伊一区| 欧美电影免费观看网站| 亚洲国产精品久久91精品| 麻豆精品视频在线观看| 亚洲缚视频在线观看| 免费看成人av| 亚洲精选在线| 国产精品99免费看 | 9色精品在线| 欧美日本在线视频| 一本色道久久88亚洲综合88| 欧美日韩激情小视频| 一本色道久久88综合亚洲精品ⅰ | 亚洲一区二区免费视频| 欧美精品在线免费播放| 99在线精品视频| 国产精品久久久久久久久免费桃花| 亚洲调教视频在线观看| 国产精品美女久久久久久免费| 亚洲欧美日韩在线综合| 国产一区二区三区免费不卡 | 亚洲中无吗在线| 国产亚洲一区二区精品| 免费观看成人| 亚洲免费成人av电影| 欧美视频日韩视频在线观看| 亚洲欧美综合另类中字| 一区二区在线免费观看| 欧美乱大交xxxxx| 午夜日韩视频| 亚洲国产精品尤物yw在线观看| 欧美激情网友自拍| 午夜精品福利一区二区三区av| 好吊视频一区二区三区四区| 欧美成人亚洲成人日韩成人| 亚洲视频精选| 在线观看免费视频综合| 欧美日韩精品一本二本三本| 亚洲欧美影音先锋| 亚洲黄色在线| 国产亚洲一级高清| 欧美国产日产韩国视频| 一区二区三区免费网站| 国产亚洲一区二区精品| 欧美久久电影| 久久久久久亚洲综合影院红桃| 亚洲国产专区| 国内精品国语自产拍在线观看| 欧美日韩无遮挡| 久久亚洲美女| 亚洲欧美一区二区三区久久| 亚洲承认在线| 国产视频自拍一区| 国产精品av久久久久久麻豆网 | 国产精品99久久久久久白浆小说 | 欧美激情视频在线播放 | 欧美一区二区免费观在线| 亚洲精品日韩一| 精品成人国产| 国产丝袜一区二区| 国产精品久久久久久久久免费桃花| 猛干欧美女孩| 久久久噜噜噜久噜久久| 性久久久久久久久久久久| 亚洲性av在线| 亚洲免费电影在线观看| 亚洲黄色大片| 精品动漫3d一区二区三区免费| 国产老肥熟一区二区三区| 国产精品福利在线观看| 欧美日韩国产综合视频在线观看中文| 免费在线看一区| 久久亚洲国产成人| 久久婷婷蜜乳一本欲蜜臀| 欧美一区高清| 久久爱www久久做| 久久爱另类一区二区小说| 午夜国产精品视频| 欧美亚洲综合在线| 欧美亚洲在线观看| 欧美一区二区三区视频免费播放 | 国产欧美视频一区二区三区| 国产农村妇女毛片精品久久麻豆| 欧美亚洲第一页| 国产精品久久中文| 国产精品专区一| 国产一区视频在线看| 好看的亚洲午夜视频在线| 红桃视频欧美| 亚洲国产清纯| 日韩视频免费在线观看| aa亚洲婷婷| 亚洲一区二区三区免费观看| 亚洲欧美三级伦理| 久久精品国产欧美亚洲人人爽| 久久激情综合网| 久久综合给合久久狠狠色| 亚洲在线播放| 欧美特黄一级大片| 国产精品视频一区二区三区| 国产有码在线一区二区视频| 一区国产精品| 日韩五码在线| 亚洲尤物精选| 久热re这里精品视频在线6| 欧美成人精品激情在线观看| 欧美日韩在线精品一区二区三区| 国产精品家庭影院| 激情偷拍久久| 在线综合亚洲欧美在线视频| 性色av一区二区三区红粉影视| 久久精品论坛| 欧美日韩在线播放一区| 国产在线观看一区| 99国产精品| 久久国产黑丝| 欧美日韩亚洲91| 国产综合视频在线观看| 亚洲美女黄色片| 久久久久久穴| 国产精品久久一级| 亚洲国产一成人久久精品| 亚洲欧美日韩在线不卡| 欧美va亚洲va香蕉在线| 国产欧美日韩高清| 日韩亚洲国产精品| 久久久久久久久久码影片| 国产精品成人一区二区三区吃奶 | 小嫩嫩精品导航| 久久久午夜电影| 国产精品另类一区| 亚洲精品专区| 久久午夜色播影院免费高清| 国产精品国产自产拍高清av王其| 亚洲国产精品ⅴa在线观看| 欧美一区二区三区的| 欧美三级小说| 亚洲精品影院| 牛牛国产精品| 影音欧美亚洲| 久久精彩视频| 国产免费观看久久黄| 亚洲视频在线一区| 欧美激情在线| 亚洲卡通欧美制服中文| 欧美成人精品一区| 亚洲成人直播| 久久久亚洲午夜电影|