Example install of ccg2lambda on CoCalc
This worksheet essentially follows the install instructions from the ccg2lambda GitHub repo.
One quick way to use this worksheet is to create a directory CCG2 in your home directory in a CoCalc project and upload this file into that directory:
In the Files view of your project, make sure you are in your home directory by clicking the "Home" icon.
At upper right in the blank for "terminal command", type
mkdir ~/CCG2
. If the directory already exists, you will get a harmless error message.Open this file in your browser with this link (you may already be viewing it this way) https://cocalc.com/projects/cd3c25e4-5fbd-439b-9604-6011584af918/files/CCG2/?session=share
Click the
Open in CoCalc
link at upper right in the shared worksheet tab.Click
Files
at upper left in the tab that opens.Click the checkbox next to the name of this file. A row of buttons will appear above the list of files.
Click Copy, then choose
a different project
for the destination. Select your project underIn the project
and selectCCG2
under Destination.Click Copy 1 item.
There is a screenshot file, premise0.png
, that is also shared, although it is not essential. You can also copy that using the last 3 steps above.
From the README file of ccg2lambda:
This is a tool to derive formal semantic representations of natural language sentences given CCG derivation trees and semantic templates.
NOTE: The MathJax CDN url mentioned in below has been fixed upstream. Therefore, the text substitution is commented out.
drwxr-xr-x 7 user user 22 May 14 06:58 ccg2lambda
Ran 162 tests in 2.271s
-rw-r--r-- 1 user user 12095247 May 11 11:39 candc-linux-1.00.tgz
-rw-r--r-- 1 user user 52304957 May 11 11:41 models-1.02.tgz
bin models
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">