發表文章

圖片
D+8 Conclusion There was a fire accident in Hsinchu not far from where Jason lives and the rains continued heavy a times. Grace continued to work on the writing part and set messy semantic tagging and extending grammatical relations aside. Jason spent some time fixing the code for computing gappy bigram and mutual information.  Initial Prompt I want to write a bash script to cat unigram counts and gappy bigram counts to awk to compute pointwise mutual information using awk in one pass to store unigram counts and then use them to compute bigram pointwise mutual information Follow-up prompt Make the script as concise as possible ================================================ To make the script as concise as possible, we can feed the raw files directly into awk without prefixing tags. awk can distinguish them by tracking the input file sequence using ARGIND (in GNU awk) or by checking the number of fields (NF).Here is the ultra-concise version assuming your unigram file has 2 column...
  D+7 Evaluation
圖片
D+6 Experiment Hsinchu is currently experiencing overcast conditions but is expected to clear up into a mix of intervals of clouds and sunshine. Expect warm temperatures, with highs reaching up to around 32°C to 33°C (90°F to 91°F), before transitioning to partly cloudy skies in the evening. Central Weather Administration. Last night 20:48 Jane sent a message saying that she was going to take a break from the Academic Writing Recipe (AWR) and prepare for the final exams on Tuesday the 9th of June. No problem. I will focus on Grace's part.  Jason picked up what was left behind yesterday and worked a bit in early morning. However, Jason spent more time thinking about the content: What about the grammatical relations (GR) of the collocations? How can GR be predicted for each collocation, when we start with ngrams without syntactic information? How can GRs can extended beyond MCD to include the grammar patterns in Collins COBUILD Project? Semantic tagging also presents some problems wi...
D+5  Same overcast sky, wet roads from overnight showers greeted Hsinchu today.  AI Overview  Hsinchu is experiencing humid, unsettled weather with cloudy skies and lingering moisture from overnight showers. While temperatures remain warm, expect scattered, localized showers and isolated thunderstorms to persist throughout the region. (Central Weather Administration)  ====================================================================== The overnight showers were accompanies by midnight-oil-burner Grace's report to Central Command well past midnight. ====================================================================== Prompt-and-Learn https://www.google.com/search?q=Same+overcast+sky%2C+wet+roads+from+overnight+.. https://www.google.com/search?q=which+is+more+appropriate+for+academic+writing%3A+%C2%A7+or+%22Section%22 ✦ AI Overview  In general academic and scientific writing, spelling out the word "Section" (or "section") is much more appropria...