99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMP3009J代做、代寫Python程序設計

時間:2024-05-29  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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






















 

掃一掃在手機打開當前頁
  • 上一篇: XJCO1921代做、代寫c/c++編程語言
  • 下一篇:菲律賓商務簽證入境稅費 菲律賓商務簽證的辦理材料
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                5月丁香婷婷综合| 欧美一区二区美女| 日韩视频免费观看高清在线视频| 日韩一区在线免费观看| 99久久精品费精品国产一区二区| 国产欧美日产一区| 99国产精品久久久久久久久久| 亚洲视频在线一区二区| 色美美综合视频| 亚洲成人激情综合网| 欧美videofree性高清杂交| 国产福利91精品一区| 国产精品国产三级国产aⅴ无密码| 91美女片黄在线观看| 日本美女一区二区| 欧美国产精品v| 欧美久久久一区| 福利91精品一区二区三区| 亚洲免费在线视频| 久久综合中文字幕| 欧美在线free| 懂色av一区二区在线播放| 亚洲第一成人在线| 亚洲国产精品精华液2区45| 欧美日韩免费视频| 成人免费视频播放| 免费看黄色91| 亚洲最色的网站| 国产精品系列在线| 欧美一区二区在线免费观看| av激情成人网| 国产一区视频网站| 亚洲mv在线观看| 国产精品久久久久久久久果冻传媒| 69久久夜色精品国产69蝌蚪网| 99九九99九九九视频精品| 精品一区二区三区在线播放视频| 伊人色综合久久天天人手人婷| 欧美激情一区在线观看| 欧美大胆一级视频| 91.麻豆视频| 欧美性三三影院| 色视频一区二区| 成人av在线影院| 国产成人av一区二区三区在线 | 91精品国产综合久久久久| 一本色道久久综合亚洲精品按摩| 成人动漫一区二区| 国产精品538一区二区在线| 麻豆一区二区99久久久久| 亚洲不卡一区二区三区| 一区二区三区在线免费观看| 亚洲精品国产一区二区精华液| 1000精品久久久久久久久| 中文字幕字幕中文在线中不卡视频| 国产欧美日韩卡一| 国产精品乱人伦一区二区| 久久久亚洲高清| 国产性色一区二区| 日本一区二区电影| 亚洲日本在线观看| 亚洲亚洲人成综合网络| 日韩黄色片在线观看| 精品一区二区在线视频| 国产成人在线观看| 91丨porny丨国产入口| 欧美视频一区二| 91精品国产综合久久福利软件| 欧美一级免费观看| 久久综合999| 亚洲另类中文字| 日本美女一区二区| 成人永久看片免费视频天堂| 一本大道久久精品懂色aⅴ| 欧美猛男男办公室激情| 日韩欧美你懂的| 国产精品麻豆久久久| 亚洲国产一区视频| 国产精品中文字幕日韩精品| 99精品国产一区二区三区不卡| 欧美日韩免费电影| 久久精品人人做| 一区二区三区免费看视频| 秋霞影院一区二区| eeuss鲁一区二区三区| 欧美久久久久免费| 一区二区三区欧美| 麻豆精品在线看| 91在线免费视频观看| 91精品福利在线一区二区三区| 欧美国产日本视频| 另类小说图片综合网| a亚洲天堂av| 日韩欧美在线综合网| 亚洲色图一区二区三区| 精品伊人久久久久7777人| 欧美日韩亚洲综合一区| 中文字幕国产精品一区二区| 麻豆国产精品一区二区三区 | 国产精品网站在线观看| 一区二区三区成人| 国产成人在线视频播放| 日韩欧美一级二级| 亚洲精品高清视频在线观看| 国产主播一区二区三区| 欧美日韩国产三级| 日韩毛片高清在线播放| 国产白丝精品91爽爽久久| 欧美日韩1234| 国产欧美一区二区精品性色超碰| 琪琪久久久久日韩精品| 欧美色图12p| 亚洲美女偷拍久久| 94-欧美-setu| 亚洲欧洲精品一区二区三区不卡| 极品少妇xxxx偷拍精品少妇| 日韩视频免费观看高清完整版在线观看 | 欧美综合一区二区| 亚洲视频在线观看一区| 不卡的av网站| 国产精品不卡视频| 波多野结衣亚洲一区| 国产精品丝袜一区| 99热这里都是精品| 亚洲欧美日韩成人高清在线一区| 99久久婷婷国产精品综合| 亚洲欧洲国产日韩| 色94色欧美sute亚洲线路一ni| 国产精品福利一区二区| 成人免费av在线| 亚洲欧美另类综合偷拍| 欧美激情综合五月色丁香| 国产成a人无v码亚洲福利| 久久精品欧美日韩| 国产成a人无v码亚洲福利| 欧美国产精品中文字幕| 色94色欧美sute亚洲线路一ni| 亚洲午夜久久久久久久久电影网 | 亚洲综合色区另类av| 色综合久久久久综合体| 又紧又大又爽精品一区二区| 欧美在线小视频| 日韩电影在线免费看| 26uuuu精品一区二区| 懂色av中文一区二区三区| 亚洲男女一区二区三区| 91麻豆精品国产91| 国产最新精品精品你懂的| 欧美国产日韩a欧美在线观看| 99久久国产综合精品麻豆| 亚洲一二三四在线观看| 日韩欧美在线不卡| 国产经典欧美精品| 亚洲久草在线视频| 日韩欧美在线123| 成人国产电影网| 日韩制服丝袜先锋影音| 久久久99久久| 在线观看亚洲精品视频| 激情欧美一区二区三区在线观看| 久久精品日产第一区二区三区高清版| 波波电影院一区二区三区| 日韩不卡一二三区| 欧美国产一区视频在线观看| 欧美日韩一区二区三区高清| 国产精品自拍网站| 亚洲成人av中文| 国产精品午夜免费| 日韩欧美在线不卡| 欧美中文字幕亚洲一区二区va在线| 久久国产尿小便嘘嘘尿| 一区二区三区在线看| 国产午夜精品久久久久久免费视| 欧美日韩精品专区| 成人午夜视频福利| 美女脱光内衣内裤视频久久网站 | 国产精品三级在线观看| 欧美色综合天天久久综合精品| 国产乱一区二区| 日本欧美一区二区| 亚洲一区在线免费观看| 亚洲国产电影在线观看| 日韩欧美自拍偷拍| 欧美日韩高清影院| av在线不卡观看免费观看| 精品一区二区三区久久| 午夜国产不卡在线观看视频| 中文字幕欧美一| 国产区在线观看成人精品 | 欧美一区二区三区白人| 色哦色哦哦色天天综合| 97精品超碰一区二区三区| 国产69精品一区二区亚洲孕妇| 久久精品国产亚洲aⅴ| 免费一区二区视频| 日韩av电影免费观看高清完整版 | 奇米888四色在线精品| 亚洲成人在线网站| 亚洲妇女屁股眼交7| 亚洲国产人成综合网站|