国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

COMP3009J代做、代寫Python程序設(shè)計(jì)

時(shí)間:2024-05-29  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



COMP3009J – Information Retrieval 
Programming Assignment 
 
This assignment is worth 30% of the final grade for the module. 
Due Date: Friday 31th May 2024 at 23:55 (i.e. end of Week 14) 
 
Before you begin, download and extract the files ``small_corpus.zip’’ and ``large_corpus.zip’’ 
from Brightspace. These contain several files that you will need to complete this assignment. 
The README.md file in each describes the files contained in the archive and their format
1

 
The main objective of the assignment is to create a basic Information Retrieval system that 
can perform preprocessing, indexing, retrieval (using BM25) and evaluation. 
 
The small corpus is intended to show the correctness of your code. The large corpus is 
intended to show the efficiency. Efficiency is only important if the code is firstly correct. 
 
Both corpora are in the same format, except for the relevance judgments. For the small 
corpus, all documents not included in the relevance judgments have been judged nonrelevant.
For the large corpus, documents not included in the relevance judgments have not 
been judged. 
 
For this assignment, you should write several independent programs, each of which is 
contained in one file2. The list of programs is below, with descriptions of each. You may 
choose not to implement all the programs (see the “Grading” section below). However, an A+ 
grade can only be awarded if all these programs have been written correctly and efficiently. 
 
It is ESSENTIAL that all programs can be run as a standalone command-line program, without 
requiring an IDE/environment such as IDLE, PyCharm, Jupyter, etc. 
 
Non-standard libraries (other than the Porter stemmer provided) may not be used. Do not 
use absolute paths (the path to the corpus will always be provided to your program). 
 
What you should submit 
 
Submission of this assignment is through Brightspace. You should submit a single .zip archive 
containing the programs you have written. 
 
1 This is a Markdown file. Although you can open and read it as plain text, proper 
programming editor (e.g. Visual Studio Code) will provide syntax highlighting for better 
readability. 
2 Here, “independent programs” means that they should not import anything from one 
another. If you write a function that is helpful in multiple programs, copy/paste it. This is, of 
course, not good programming practice in terms of reusability of code. However, it helps 
with the grading process. Programs: 
index_small_corpus.py 
 
This program is intended to read the small corpus, process its contents and create an index. 
 
It must be possible to pass the path to the (unzipped) small corpus to this program as a 
command-line argument named “-p”3: 
 
./index_small_corpus.py -p /path/to/comp3009j-corpus-small 
 
This program must perform the following tasks: 
 
1. Extract the documents contained in the corpus provided. You must divide the documents 
into terms in an appropriate way (these are contained in the ``documents’’ directory of the 
corpus. The strategy must be documented in your source code comments. 
 
2. Perform stopword removal. A list of stopwords to use can be loaded from the 
stopwords.txt file that is provided in the ``files’’ directory of the corpus. 
 
3. Perform stemming. For this task, you may use the porter.py code in the ``files’’ 
directory. 
 
4. Create an appropriate index so that IR using the BM25 method may be performed. Here, 
an index is any data structure that is suitable for performing retrieval later. 
 
This will require you to calculate the appropriate weights and do as much pre-calculation as 
you can. This should be stored in a single external file in some human-readable4 format. Do 
not use database systems (e.g. MySQL, SQL Server, SQLite, etc.) for this. 
 
The output of this program should be a single index file, stored in the current working 
directory, named “21888888-small.index” (replacing “21888888” with your UCD 
student number). 
 
 
 
3 This path might, for example be “/Users/david/datasets/comp3009j-corpussmall”
or “C:/Users/datasets/comp3009j-corpus-small”. 
4 Here, “human-readable” means some text-based (i.e. non-binary) format. It should be 
possible to see the contents and the structure of the index using a standard text editor. query_small_corpus.py 
 
This program allows a user to submit queries to retrieve from the small corpus, or to run the 
standard corpus queries so that the system can be evaluated. The BM25 model must be used 
for retrieval. 
 
Every time this program runs, it should first load the index into memory (named “21888888-
small.index” in the current working directory, replacing “21888888” with your UCD student 
number), so that querying can be as fast as possible. 
 
This program should offer two modes, depending on a command-line argument named “-
m”. These are as follows: 
 
1. Interactive mode 
 
In this mode, a user can manually type in queries and see the first 15 results in their 
command line, sorted beginning with the highest similarity score. The output should have 
three columns: the rank, the document’s ID, and the similarity score. A sample run of the 
program is contained later in this document. The user should continue to be prompted to 
enter further queries until they type “QUIT”. 
 
Example output is given below. 
 
Interactive mode is activated by running the program in the following way: 
 
./query_small_corpus.py -m interactive -p /path/to/comp3009j-corpus-small 
 
2. Automatic mode 
 
In this mode, the standard queries should be read from the ``queries.txt’’ file (in the 
``files’’ directory of the corpus). This file has a query on each line, beginning with its 
query ID. The results5 should be stored in a file named “218888880-small.results" 
in the current working directory (replacing “21888888” with your UCD student number), 
which should include four columns: query ID, document ID, rank and similarity score. A 
sample of the desired output can be found in the “sample_output.txt” file in the 
“files” directory in the corpus. 
 
Automatic mode is activated by running the program in the following way: 
 
./query_small_corpus.py -m automatic -p /path/to/comp3009j-corpus-small 
 
 
 
5 You will need to decide how many results to store for each query. evaluate_small_corpus.py 
 
This program calculates suitable evaluation metrics, based on the output of the automatic 
mode of query_small_corpus.py (stored in “218888880-small.results" in the 
current working directory (replacing “21888888” with your UCD student number). 
 
The program should calculate the following metrics, based on the relevance judgments 
contained in the ``qrels.txt’’ file in the ``files’’ directory of the corpus): 
- Precision 
- Recall 
- R-Precision 
- P@15 
- NDCG@15 
- MAP 
 
The program should be run in the following way: 
./evaluate_small_corpus.py -p /path/to/comp3009j-corpus-small 
 index_large_corpus.py 
 
This program should perform the same tasks as index_small_corpus.py, except that the 
output file should be named “21888888-large.index” (replacing “21888888” with your 
UCD student number). 
 
query_large_corpus.py 
 
This program should perform the same tasks as query_small_corpus.py, except that the 
output results file should be named “21888888-large.results” (replacing “21888888” 
with your UCD student number). 
 
evaluate_large_corpus.py 
 
In addition to the evaluation metrics calculated by evaluate_small_corpus.py, this 
program should also calculate bpref (since the large corpus has incomplete relevance 
judgments). 
 
Otherwise, this program should perform the same tasks as evaluate_small_corpus.py, 
except that the input results file should be named “21888888-large.results” (replacing 
“21888888” with your UCD student number). 
 
 Sample Run (Interactive) 
$ ./query_small_corpus.py -m interactive -p /Users/david/comp3009j-corpus-small 
Loading BM25 index from file, please wait. 
Enter query: library information conference 
 
Results for query [library information conference] 
1 928 0.991997 
2 1109 0.984280 
3 1184 0.979530 
4 309 0.96**75 
5 533 0.918940 
6 710 0.912594 
**88 0.894091 
8 1311 0.8**748 
9 960 0.845044 
10 717 0.833753 
11 77 0.829261 
12 1129 0.821643 
13 783 0.817639 
14 1312 0.804034 
15 423 0.795264 
Enter query: QUIT 
Note: In all of these examples, the results, and similarity scores were generated at random for 
illustration purposes, so they are not correct scores. 
Sample Run (Evaluation) 
$ ./evaluate_large_corpus.py -p /Users/david/comp3009j-corpus-large 
 
Evaluation results: 
Precision: 0.138 
Recall: 0.412 
R-precision: 0.345 
P@15: 0.621 
NDCG@15 0.123 
MAP: 0.253 
bpref: 0.345 
 
 Grading 
 
Grading is based on the following (with the given weights)6: 
- Document reading and preprocessing: 15% 
- Indexing: 20% 
- Retrieval with BM25: 20% 
- Evaluation: 15% 
- Efficiency: 15% (as evidenced by the performance on the large corpus) 
- Programming style (comments/organisation): 15% 
 
Other notes 
1. This is an individual assignment. All code submitted must be your own work. Submitting the work 
of somebody else or generated by AI tools such as ChatGPT is plagiarism, which is a serious 
academic offence. Be familiar with the UCD Plagiarism Policy and the UCD School of Computer 
Science Plagiarism Policy. 
2. If you have questions about what is or is not plagiarism, ask! 
 
Document Version History 
v1.0: 2024-04-26, Initial Version. 
 
6This assignment will be graded using the “Alternative Linear Conversion Grade Scale 40% 
Pass” Mark to Grade Conversation Scale: 

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






















 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇: XJCO1921代做、代寫c/c++編程語言
  • 下一篇:菲律賓商務(wù)簽證入境稅費(fèi) 菲律賓商務(wù)簽證的辦理材料
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国内精品在线观看视频| 亚洲精品国产精品国自产观看| 青青在线视频免费| 亚洲精品欧美极品| 日韩一级片免费视频| 亚洲综合在线做性| 自拍视频一区二区三区| 中文字幕久精品免| 一区二区三区视频| 久久久久成人网| 亚洲午夜精品久久| 无码aⅴ精品一区二区三区浪潮| 亚洲三区在线| 亚洲xxxx视频| 欧美一级片在线播放| 亚洲一区美女| 性欧美精品一区二区三区在线播放| 亚洲字幕在线观看| 无码人妻精品一区二区蜜桃百度| 日韩一级片一区二区| 日本高清视频精品| 日韩欧美在线电影| 国内精品久久国产| 国产日韩av在线播放| 国产精品一区二区免费| 91福利视频导航| 久久国产欧美精品| 精品国内自产拍在线观看| 国产成人生活片| 久久综合久久美利坚合众国| 日韩中文在线字幕| 日韩精品无码一区二区三区| 欧美人成在线观看| 国产麻豆一区二区三区在线观看| 91久久精品国产| 久久久久久久久久网| 国产精品国模大尺度私拍| 欧美巨大黑人极品精男| 午夜老司机精品| 欧美亚洲日本网站| 午夜精品一区二区三区视频免费看| 国产超级av在线| 日韩在线免费视频观看| 久久中国妇女中文字幕| 亚洲国产精品综合| 日本成人精品在线| 国产日韩中文字幕在线| 99国内精品久久久久久久软件| 久久久久久人妻一区二区三区| 欧美成人综合一区| 91av成人在线| 久久成人综合视频| 日韩视频免费播放| 高清视频欧美一级| 国产精品视频yy9099| 亚洲va欧美va在线观看| 亚洲精品国产精品国自产| 丝袜美腿精品国产二区| 国产精品久久久久久av下载红粉| 国产精品久久网| 亚洲一二三区在线| 韩国国内大量揄拍精品视频| 久久久久久www| 中文网丁香综合网| www.日韩系列| 亚洲精品国产一区| 国产欧美在线一区二区| 久久久久久久97| 亚洲高清在线观看一区| 国产综合动作在线观看| 久久99精品久久久久久三级| 一本色道久久88亚洲精品综合| 激情六月天婷婷| 日韩一区二区av| 欧美一区二区.| 国产精品永久免费| 久久成人精品电影| 欧美日韩一区二区视频在线观看| 久久免费成人精品视频| 亚洲淫片在线视频| 国产伦精品一区二区三区| 国产精品三区在线| 欧美精品一区二区三区久久| 久艹在线免费观看| 日本www高清视频| 国产成人一区二区在线| 五月天婷亚洲天综合网鲁鲁鲁| 97人人模人人爽人人喊中文字| 欧美激情小视频| 国产精品一区二区三区毛片淫片| 久久精品成人动漫| 欧美自拍视频在线观看| 久久免费视频网站| 色欲av无码一区二区人妻| 91老司机精品视频| 亚洲va久久久噜噜噜久久天堂| 成人免费视频a| 欧美激情xxxxx| 成人美女免费网站视频| 欧美精品www| 99久久激情视频| 川上优av一区二区线观看| 国产激情综合五月久久| 日本精品视频在线播放| 色婷婷av一区二区三区在线观看| 日韩av成人在线| 久久av免费观看| 奇米精品一区二区三区| 久久久999国产精品| 国内一区二区三区在线视频| 欧美xxxx做受欧美.88| 国产一区二区三区免费不卡| 欧美激情精品久久久久| 97精品伊人久久久大香线蕉| 亚洲激情一区二区三区| 久久人91精品久久久久久不卡| 日韩在线xxx| www.欧美三级电影.com| 国内精品久久影院| 亚洲最大av网站| 777精品久无码人妻蜜桃| 日本一区二区三区视频在线播放 | 日韩专区中文字幕| 黄色一级视频播放| 欧美精品做受xxx性少妇| 久久综合亚洲精品| 黄色国产精品一区二区三区| 欧美久久久精品| 国产精品88a∨| 极品粉嫩国产18尤物| 亚洲图片小说在线| 久久久精品一区| 成人久久久久爱| 欧洲在线视频一区| 欧美激情精品久久久久久久变态 | 亚洲一区二区三区欧美| 久久国产精品视频在线观看| 精品一区二区三区自拍图片区| 伊人久久青草| 久久久精品一区| 99超碰麻豆| 黄色免费观看视频网站| 性日韩欧美在线视频| 欧美精品一区二区三区国产精品| 久久久之久亚州精品露出| 每日在线更新av| 日本精品视频网站| 亚洲一区二区高清视频| 狠狠色狠狠色综合人人| 午夜免费福利小电影| 久久伊人色综合| 久久人妻精品白浆国产| 国产美女久久久| 久久精品日产第一区二区三区乱码| 日韩人妻精品无码一区二区三区 | 欧美亚洲一级二级| 亚洲欧美日韩精品综合在线观看 | 久青草国产97香蕉在线视频 | 麻豆91av| 精品国产一区av| 欧美激情国产日韩| 亚洲免费不卡| 国产精品无码电影在线观看| 91精品国产91久久久久久不卡| 国产一区在线观| 欧美日韩精品免费在线观看视频| 午夜一区二区三区| 欧美日韩福利视频| 国产精品第3页| 久久精品一本久久99精品| 久久久精品有限公司| 成人av资源在线播放| 国产午夜福利视频在线观看| 欧美一区二区影视| 日本在线观看a| 色乱码一区二区三在线看| 亚洲欧洲一区二区| 九九久久精品一区| 九九综合九九综合| 欧美理论片在线观看| 国产精品国产对白熟妇| 久久精品视频亚洲| 国产精品无码人妻一区二区在线| 久久久久久久午夜| 日韩中文字幕精品| 久久精品久久久久久| 国产精品偷伦免费视频观看的 | 国产精品久久久久久搜索| 日韩中文字幕第一页| 日韩亚洲一区二区| 久久久久久中文字幕| 国产ts人妖一区二区三区| 久久久久亚洲精品成人网小说| 国产高清www| 国产成人一区二区三区| 久久免费少妇高潮久久精品99| 久久人人97超碰人人澡爱香蕉| 国产精品97在线| 国产二区不卡| 久久久久久香蕉|