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

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

代寫CS 61B、代做java編程設(shè)計(jì)

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



 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 1/11
CS 61B
Projects / Project 2C: Ngordnet Enhancements
Each assignment will have an FAQ linked at the top. You can also access it by adding “/faq” to
the end of the URL. The FAQ for Project 2C is located here.
In this project, you?ll complete your implementation of the NGordnet for k!=0 and
commonAncestors case.
As this is a quite new project, there may be occasional bugs or confusion with the spec. If you
notice anything of this sort, please post on Ed.
DANGER
Please read through the 2B spec before starting 2C.
DANGER
THE SETUP FOR THIS PROJECT IS DIFFERENT THAN THE OTHER LABS / PROJECTS.
PLEASE DO NOT SKIP THIS STEP!
Project 2C: Ngordnet Enhancements
FAQ
Checkpoint & Design Doc Due 03/15/2024
Coding Due 04/01/2024
Project Setup
Skeleton Setup
Similar to other assignments in this class, run git pull skeleton main to get the skeleton
code for this project.
1
NOTE: You?ll notice that this skeleton is (almost) the exact same as the Project 2B
skeleton. This is intentional.
a
Download the data files for this project using this link and move them into your proj2c
folder on the same level as src .
2
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 2/11
Once you are done, your proj2c directory should look like this:
WARNING
While you can (and should!) certainly design for 2C in advance, we suggest only starting to
code after you get a full score on Project 2B just in case your implementation has any
subtle bugs in it.
WARNING
IMPORTANT NOTE: You should really complete Project 2B/C: Checkpoint first before
starting coding, or even designing your project. It will be helpful for your understanding of
the project. We will also require you to submit a design document to Gradescope. More
details about the design document can be found in Deliverables and Scoring.
This part of the project is designed for you to come up with an efficient and correct design for
your implementation. The design you come up with will be very important to handle these
cases. Please read the 2B & 2C spec carefully before starting your design document.
Copy your implementation from 2A for ngrams , including TimeSeries and NGramMap , into
the proj2c folder.
3
Copy your implementation from 2B into the proj2c folder, since k!=0 &
commonAncestors will depend on your implementation from 2A and 2B.
4
proj2c
├── data
│ ├── ngrams
│ └── wordnet
├── src
│ ├── <2B helper files>
│ ├── browser
│ ├── main
│ ├── ngrams
│ │ ├── <Your NGramMap implementation from 2A>
│ │ └── <Your TimeSeries implementation from 2A>
│ └── plotting
├── static
└── tests
Copy
Getting Started
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 3/11
We?ve created two wonderful tools that you can (and should!) use to explore the dataset, see
how the staff solution behaves for specific inputs, and get expected outputs for your unit tests
(see Testing Your Code). We?ll link them here, as well as in other relevant parts of the spec.
Wordnet Visualizer: Useful for visually understanding how synsets and hyponyms work and
testing different words/lists of words for potential test case inputs. Click on the “?” bubbles
to learn how to use the various features of this tool!
Staff Solution Webpage: Useful for generating expected outputs for different test case
inputs. Use this to write your unit tests!
TASK
Read through the entire 2B/C spec and complete Project 2B/C: Checkpoint
After finishing the checkpoint, complete Design Document
In Project 2B, we handled the situation where k == 0 , which is the default value when the
user does not enter a k value.
Your required task is to handle the case where the user enters k . k represents the maximum
number of hyponyms that we want in our output. For example, if someone enters the word
“dog”, and then enters k = 5 , your code would return at most 5 words.
To choose the 5 hyponyms, you should return the k words which occurred the most times in
the time range requested. For example, if someone entered words = ["food", "cake"] ,
startYear = 1950 , endYear = 19** , and k = 5 , then you would find the 5 most popular
words in that time period that are hyponyms of both food and cake. Here, the popularity is
defined as the total number of times the word appears over the entire time period requested.
The words should then be returned in alphabetical order. In this case, the answer is [cake,
cookie, kiss, snap, wafer] if we?re using top_14377_words.csv , total_counts.csv ,
synsets.txt , and hyponyms.txt .
DANGER
Be sure you are getting the words that appear with the highest counts, not the highest
weights. Otherwise, you will run into issues that are very difficult to debug!
Note that if the frontend doesn?t supply a year, default values of startYear = 1**0 and endYear
= 2020 are provided by NGordnetQueryHandler.readQueryMap .
It might be hard to figure out the hyponyms of the words with k != 0 so we are providing
data that is easier to visualize! Below, you?ll see a modified version for EECS class
?
?
Handling k != 0
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 4/11
requirements, inspired by HKN. We have also provided the data that represents the graph
below ( frequency-EECS.csv , hyponyms-EECS.txt , synsets-EECS.txt ). If someone entered
words = ["CS61A"] , startYear = 2010 , endYear = 2020 , and k = 4 , you should receive
"[CS170, CS61A, CS61B, CS61C]" . This frequency-EECS.csv is a bit different from the
previous one since it has values with the same frequencies. We highly recommend you to take
a look at frequency-EECS.csv . Also, while you are designing your implementation, bear this in
mind that we can give you words with the same frequencies.
Project 2C: Ngordnet Enhancements - EECS Course Guide Edited 1 month ago
If a word never occurs in the time frame specified, i.e. the count is zero, it should not be
returned. In other words, if k > 0 , we should not show any words that do not appear in the
ngrams dataset.
If there are no words that have non-zero counts, you should return an empty list, i.e. [] .
If there are fewer than k words with non-zero counts, return only those words. For example if
you enter the word "potato" and enter k = 15 , but only 7 hyponyms of "potato" have
non-zero counts, you?d return only 7 words.
This task will be a little trickier since you?ll need to figure out how to pass information around
so that the HyponymsHandler knows how to access a useful NGramMap .
TASK
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 5/11
Modify your HyponymsHandler and the rest of your implementation to deal with the k !=
0 case.
WARNING
EECS-course guide is not available on the interactive web staff solution so it won?t return
anything if you give the input CS61A .
DANGER
DO NOT MAKE A STATIC NGRAMMAP FOR THIS TASK! It might be tempting to simply
make some sort of public static NGramMap that can be accessed from anywhere in your
code. This is called a "global variable".
We strongly discourage this way of thinking about programming, and instead suggest that
you should be passing an NGramMap to either constructors or methods. We?ll come back
to talking about this during the software engineering lectures.
Until you use the autograder, you?ll need to construct your own test cases. We provided
one in the previous section: words = ["food", "cake"] , startYear = 1950 , endYear =
19** , k = 5 .
When constructing your own test cases, consider making your own input files. Using the
large input files we provide is extremely tedious.
Up until now, we have only been concerned with finding the common hyponyms of words. For
the last part of this project, your task is to find the common ancestors.
That is, given a set of words, what words contain the given set of words as hyponyms?
For example, consider synsets16.txt and hyponyms16.txt from 2B:
Tips
?
?
Finding Common Ancestors
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 6/11
If we find the ancestors of "adjustment" , we should get "[adjustment, alteration, event,
happening, modification, natural_event, occurrence, occurrent]" , as shown in the
graph below.
This also should apply to words in multiple contexts, as seen with "change" :
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 7/11
The ancestors of "change" should be "[act, action, alteration, change, event,
happening, human_action, human_activity, modification, natural_event, occurrence,
occurrent]" .
We can also ask for the common ancestors of sets of words, which can reveal some neat
relationships!
Here, we find the common ancestors of the words = ["change", "adjustment"] . The result
should be "[alteration, event, happening, modification, natural_event, occurrence,
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 8/11
occurrent]" , which are all the words in the graph that contain both "change" and
"adjustment" as hyponyms. Note that "alteration" and "modification" are also included
in the result, contrary to what you might expect, as explained below.
Note: Be sure to take a word intersection rather than a node intersection just as in 2B, so the
common ancestors of ["test_subject", "math"] in the following graph should return "
[subject]" , as "subject" contains both "test_subject" and "math" as hyponyms, even
though "test_subject" and "math" are not directly connected in the graph.
We may also ask for common ancestors of three or more words.
Note that the outputs are in alphabetical order, and keep in mind that k != 0 can also apply
to this task.
Your query handling needs to remain efficient for common ancestors (i.e., the timeouts applied
to 2B still apply here). This means that going through every single word and checking if it
contains all the words in the query as hyponyms will be too slow on the larger datasets!
You will need to modify your HyponymsHandler class to account for the type of query, i.e.,
hyponyms or common ancestors. This should look similar to how you found startYear ,
endYear , or k , and this will be specified for you with NgordnetQueryType.HYPONYMS or
NgordnetQueryType.ANCESTORS , respectively.
TASK
Modify your HyponymsHandler and the rest of your implementation to handle common
ancestor queries in addition to hyponym queries.
As mentioned before, you should not need to copy-paste your code or do anything too drastic
to handle this task. Consider how you can use the same data structures and methods from
before to solve this problem, perhaps with a few tweaks.
NgordnetQueryType
Design Tips
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 9/11
Helper methods are your friends! If you find yourself writing similar code more than once,
consider making a helper method that you can call from both places that does the common
work for you.
For Project 2C, the only required deliverable is the HyponymsHandler.java file, in addition to
any helper classes. However, we will not be directly grading these classes, since they can vary
from student to student.
Project 2B/C: Checkpoint: 5 points - Due March 15th
Project 2C Coding: 25 points - Due April 1st
HyponymsHandler popularity-hardcoded: 20%, k != 0
HyponymsHandler popularity-randomized: 30%, k != 0
HyponymsHandler common-ancestors: 50%
In addition to Project 2C, you will also have to turn in your design document. This will be worth
5 points and it is due March 15th. The design document?s main purpose is to serve as a
foundation for your project. It is important to think and ideate before coding. What we are
looking for in the design document:
Identify the data structures we have learned in the class that you will be using in your
implementation.
Pseudocode / general overview of your algorithm for your implementation.
Your design document should be around 1 - 2 pages long. Design document will be mainly
graded on effort, thought and completion.
Please make a copy of this template and submit to Gradescope.
Don?t worry if you decide to change your design document after. You are free to do so! We
want you to think about the implementation before coding therefore we require you to submit
your design as the part of the project.
The token limiting policy for this project will be as follows: You will start with 8 tokens, each of
which has a 24-hour refresh time.
We?ve provided you with two short unit test files for this project in the proj2c/tests
directory:
TestOneWordKNot0Hyponyms.java
Deliverables and Scoring

 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 10/11
TestCommonAncestors.java
These test files are not comprehensive; in fact, they each only contain one sanity check
test. You should fill each file with more unit tests, and also use them as a template to create
two new test files for the respective cases.
If you need help figuring out what the expected outputs of your tests should be, you should
use the two tools that we linked in the Getting Started section.
Use the small files while testing! This decreases the startup time to run Main.java and
makes it easier to reason about the code. If you?re running Main.java , these files are set in
the first few lines of the main method. For unit tests, the file names are passed into the
getHyponymsHandler method.
You can run Main.java with the debugger to debug different inputs quickly. After clicking
the “Hyponyms” button, your code will execute with the debugger - breakpoints will be
triggered, you can use the variables window, etc.
There are a lot of moving parts to this project. Don?t start by debugging line-by-line.
Instead, narrow down which function/region of your code is not working correctly then
search more closely in those lines.
Check the FAQ for common issues and questions.
Throughout this assignment, we?ve had you use your front end to test your code. Our grader is
not sophisticated enough to pretend to be a web browser and call your code. Instead, we?ll
need you to provide a method in the proj2c_testing.AutograderBuddy class that provides a
handler that can deal with hyponyms requests.
When you ran git pull skeleton main at the start of this spec, you should have received a
file called AutograderBuddy.java
Just like 2B, open AutograderBuddy.java and fill in the getHyponymsHandler method such
that it returns a HyponymsHandler that uses the four given files. Your code here will probably
be similar to your code in Main.java .
Now that you?ve created proj2c.testing.AutograderBuddy , you can submit to the
autograder. If you fail any tests, you should be able to replicate them locally as JUnit tests by
building on the test files above. If any additional datafiles are needed, they will be added to this
section as links.

Submitting Your Code
 Project 2C: Ngordnet Enhancements | CS 61B Spring 2024
 11/11
If you?d like to go above and beyond in this project (and even explore some front-end
development), read through the Optional Features spec!
The WordNet part of this assignment is loosely adapted from Alina Ene and Kevin Wayne?s
Wordnet assignment at Princeton University.
Optional Extra Features
Acknowledgements

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp















 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:日本工作簽證去菲律賓免簽嗎 免簽條件總結(jié)
  • 下一篇:代做FINT2100、代寫Java/Python程序設(shè)計(jì)
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
  • 短信驗(yàn)證碼 豆包網(wǎng)頁版入口 目錄網(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

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

          9000px;">

                亚欧洲精品视频| 中文字幕欧美激情极品| 亚洲毛片欧洲毛片国产一品色 | 在线免费观看国产精品| 午夜三级在线观看| 草久视频在线观看| 中文字幕 欧美日韩| 日本www.色| 久久午夜鲁丝片午夜精品| 亚洲伦理在线观看| 婷婷国产成人精品视频| 国产av一区二区三区| 日韩精品在线不卡| 国产精品suv一区二区69| 天天操天天舔天天干| 久久精品视频2| av免费观看在线| 欧美黄色一级大片| 亚洲日本久久久| 中文字字幕在线中文乱码| 欧美性猛交bbbbb精品| 国产盗摄一区二区三区在线| 国产成人在线免费观看视频| 在线免费观看黄色小视频| 久久精品老司机| 亚洲免费av一区二区三区| 欧美性生交大片| 久久久久久久久精| 国产精品xxxx喷水欧美| 亚洲欧美丝袜中文综合| 亚洲s码欧洲m码国产av| 久久久久久av无码免费网站| 伊人成人在线观看| 久久久久性色av无码一区二区| 国产精品999.| 国产精品久久久久久久久毛片| 亚洲视频 欧美视频| 欧美成人黄色网| 中文字幕第三区| 日本午夜在线观看| 日本少妇激三级做爰在线| 精品在线视频免费| 日韩激情小视频| 欧美做爰爽爽爽爽爽爽| 精品一区二区6| 日本精品久久久久久| 男人的天堂官网| www欧美com| 亚洲麻豆一区二区三区| 久久人人爽人人爽人人| 精品成人无码一区二区三区| 精品视频一二三区| 少妇久久久久久被弄高潮| 无码av免费精品一区二区三区| 中文字幕22页| 久久精品视频久久| 日本高清视频免费观看| 特黄视频免费看| 亚洲精品国产精品乱码| 波多野结衣不卡视频| 国产一区二区三区四区在线| 久久久久久久久艹| 天天干天天综合| 亚洲一二三av| 国产亚洲色婷婷久久99精品| 欧美特黄一级片| 在线播放黄色av| 国产91av在线播放| 美女视频久久久| 无码人妻一区二区三区免费| 亚洲精品在线视频播放| 福利一区二区三区四区| 男人天堂2024| 圆产精品久久久久久久久久久| www.日本xxxx| 毛片毛片毛片毛片毛片毛片毛片毛片毛片 | 久久这里只有精品国产| 手机毛片在线观看| 亚洲婷婷综合网| 国产精品 欧美激情| 青草视频在线观看免费| 在线中文字日产幕| 国产露脸国语对白在线| 日韩黄色一区二区| 一级片aaaa| 久久人人爽人人片| 亚洲欧美一区二区三区在线观看| 国产一区二区三区影院| 性色av免费观看| 国产乱国产乱老熟300部视频| 日本一二三区在线| 91青青草视频| 欧美黑人一级片| 亚洲天堂资源在线| 玖玖爱视频在线| 亚洲欧美日韩第一页| 黄色大片网站在线观看| 一起草最新网址| 国内av在线播放| 在线观看av大片| 国产又粗又大又爽视频| 亚洲不卡的av| 精品国产鲁一鲁一区二区三区| 亚洲福利精品视频| 精品无码人妻一区二区免费蜜桃| 在线观看免费av网址| 黄色激情在线观看| 亚洲三级黄色片| 欧美在线a视频| 福利视频999| 在线永久看片免费的视频| 精品人妻无码一区二区三区| 综合激情网五月| 麻豆三级在线观看| 成 人 免费 黄 色| 性色av无码久久一区二区三区| 精品国产av一区二区三区| 亚洲乱色熟女一区二区三区| 欧美性猛交xxxx乱大交hd| www.国产三级| 亚洲av成人片色在线观看高潮 | 免费黄在线观看| av av在线| 天堂在线免费观看视频| 国产一级片毛片| 亚洲欧美丝袜中文综合| 日本xxxx黄色| 国产一级特黄aaa大片| 亚洲欧美日韩中文字幕在线观看 | 91欧美一区二区三区| 婷婷色在线观看| 精品一区二区6| 99九九精品视频| 中文av免费观看| 欧日韩不卡视频| 韩国av中国字幕| av大片免费观看| 永久av免费网站| 熟妇高潮一区二区| 久久久男人的天堂| 国产精品国产三级国产普通话对白 | 色香蕉在线视频| 久久精品三级视频| 国产美女喷水视频| 97国产精品久久久| 中文字幕一区二区在线视频| 日韩精品成人一区| 久久久久中文字幕亚洲精品| 国产九九热视频| 97人妻一区二区精品免费视频| 一区二区久久精品66国产精品| 欧美黄色免费观看| 久久av无码精品人妻系列试探| 丰满熟妇人妻中文字幕| 亚洲综合精品在线| 亚洲精品www久久久久久| 亚欧精品在线视频| 少妇久久久久久被弄高潮| 欧美熟妇交换久久久久久分类| 精品视频一区二区在线观看| 国产精品v日韩精品v在线观看| www.激情五月| 69视频免费看| 亚洲天堂中文在线| 亚洲欧洲日本精品| 亚洲欧美在线不卡| 亚洲欧美国产中文| 亚洲精品免费在线观看视频 | 成人精品999| 亚洲人与黑人屁股眼交| 中国极品少妇videossexhd| 成人免费一区二区三区| 国产精品第一页在线观看| 久久视频精品在线观看| 亚洲免费在线视频观看| 黄色一级大片在线免费看国产| 制服丝袜在线一区| 中国精品一区二区| 青青草成人免费| 久久精品波多野结衣| 国产乱码在线观看| 国产美女无遮挡永久免费| 日韩一区二区三区在线观看视频 | 国产精品久久久久久久妇| 日韩av一卡二卡三卡| 欧美一区二区三区四| 欧美性生交大片| 中文字幕丰满乱码| 亚洲欧美一区二区三区在线观看 | 天天色综合天天色| 久久久免费高清视频| 国产日韩欧美中文字幕| 丰满人妻熟女aⅴ一区| 亚洲影视一区二区| 99久久综合网| 成人一区二区三区仙踪林| 精品国产乱码久久久久久1区二区 精品国产鲁一鲁一区二区三区 | 国产又黄又猛又粗又爽的视频| av黄色一级片| 国产精品999久久久|