### OpenCog Experiment Directory Setup Example Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Provides a bash command example for setting up directories for a new experiment (e.g., 'Experiment 42'). It demonstrates copying common scripts, creating experiment-specific directories for text, data, and configuration, and organizing shared versus experiment-specific files. ```bash cp -pr run-common /home/ubuntu/run-common cp -pr run /home/ubuntu/run mkdir /home/ubuntu/text/expt-42 mkdir /home/ubuntu/data/expt-42 cp -pr run-config /home/ubuntu/config/expt-42 ``` -------------------------------- ### Setup Learn Project Build Directory Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Configures the build environment for the 'learn' project within the container. This involves creating a build directory, cleaning it, configuring with CMake, compiling, and installing. ```bash cd ~/learn ~/learn$ mkdir build ~/learn$ cd build ~/learn/build$ rm -rf * ~/learn/build$ cmake .. ~/learn/build$ make ~/learn/build$ sudo make install ~/learn/build$ make run-ull ``` -------------------------------- ### Link Grammar Dependencies and Setup Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Installs necessary development libraries (`libsqlite3-dev`) and clones the `guile-dbi` repository for database interfaces, essential for exporting Link Grammar dictionaries. ```bash sudo apt install libsqlite3-dev git clone https://github.com/opencog/guile-dbi ``` ```apidoc Follow the instructions in the README. It's easy and fast. Build the sqlite3 bindings. ``` -------------------------------- ### Setup OpenCog Learn Build Directory (Bash) Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Initializes the build environment for the OpenCog 'learn' project. This involves creating a build directory, cleaning its contents, configuring the build with CMake, compiling the project, installing it, and running the 'run-ull' target. ```bash ~/learn$ mkdir build ~/learn$ cd build ~/learn/build$ rm -rf * ~/learn/build$ cmake .. ~/learn/build$ make ~/learn/build$ sudo make install ~/learn/build$ make run-ull ``` -------------------------------- ### Install Link Grammar System Source: https://github.com/opencog/learn/blob/master/README-Natural.md Step-by-step instructions for installing the link-grammar system from a tarball. It involves extracting the archive, configuring the build, compiling, and installing the software. ```shell tar -zxf link-grammar-5.x.x.tar.gz cd link-grammar-5.x.x mkdir build; cd build ../configure make -j sudo make install ``` -------------------------------- ### Build OpenCog Components (cogutils Example) Source: https://github.com/opencog/learn/blob/master/README-Natural.md Clones, configures, builds, and installs OpenCog components like cogutils. This process involves cloning the repository, creating a build directory, running CMake for configuration, compiling with make, and installing the component system-wide. ```bash git clone https://github.com/opencog/cogutils cd cogutils; mkdir build; cd build cmake .. make -j sudo make install ``` -------------------------------- ### Minimum Spanning Tree (MST) Parsing Setup Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Instructions for setting up and running the MST parser, which requires pre-computed word-pair MI values or other link weights. This involves building and installing OpenCog components. ```APIDOC MST Parser Setup: - Requires pre-computed word-pair MI or other link weights. - Code located in `scm/mst-parser.scm` and `run-poc/redefine-mst-parser.scm`. - Build process: ~/learn$ mkdir build ~/learn$ cd build ~/learn/build$ rm -rf * ~/learn/build$ cmake .. ~/learn/build$ make ~/learn/build$ sudo make install ~/learn/build$ make run-ull - After setup, copy text files to `gamma-pages` or edit `text-process.sh`. ``` -------------------------------- ### OpenCog Build and Install Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Commands to set up the OpenCog build environment, compile the project, and install it. This includes creating a build directory, configuring with CMake, compiling with make, and performing a system-wide installation. ```shell mkdir build cd build rm -rf *//cmake .. make sudo make install make run-ull ``` -------------------------------- ### Build and Install OpenCog Components Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Commands to set up the build environment, compile, and install OpenCog components, including running the ull (universal language learner) executable. ```shell mkdir build cd build rm -rf * cmake .. make sudo make install make run-ull ``` -------------------------------- ### Build and Install Cogutils Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Steps to build and install the cogutils library. This involves navigating to the directory, creating a build folder, configuring the build with CMake, and then compiling and installing the package. ```bash cd cogutils; mkdir build; cd build cmake .. make -j sudo make install ``` -------------------------------- ### Link Grammar Dictionary Files Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs dictionary files and associated affix files for the Link Grammar parser. These are crucial for the grammatical analysis components of the project. ```data storage.dict 4.0.affix ``` -------------------------------- ### Install Link Grammar Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Installs the Link Grammar parser, a required component for artificial language learning. This process involves downloading the source, configuring, compiling, and installing the parser, ensuring version 5.6.1 or newer. ```bash tar -zxf link-grammar-5.x.x.tar.gz cd link-grammar-5.x.x mkdir build; cd build ../configure make -j sudo make install ``` -------------------------------- ### Install Guile Bindings for SQLite3 Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Installs the guile bindings for sqlite3, which are necessary for exporting data to Link Grammar. This involves cloning the guile-dbi repository, configuring, building, and installing both guile-dbi and guile-dbd-sqlite3. ```bash git clone https://github.com/opencog/guile-dbi cd guile-dbi/guile-dbi ./autogen.sh --no-configure mkdir build; cd build; ../configure; make sudo make install cd ../guile-dbd-sqlite3 ./autogen.sh --no-configure mkdir build; cd build; ../configure; make sudo make install ``` -------------------------------- ### Start LXC Container Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Starts a specified LXC container by its name. After starting, it's recommended to list containers again to confirm the running state and obtain the IP address. ```bash lxc-start -n simil-en ``` -------------------------------- ### Install Assorted Build Tools and Libraries Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Installs essential build tools and development libraries required for the OpenCog project using the APT package manager. This includes compilers, Git, Boost libraries, Guile development headers, RocksDB, PostgreSQL client, and more. ```bash sudo apt install git cmake g++ sudo apt install libboost-filesystem-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev sudo apt install guile-3.0-dev librocksdb-dev libuuid-dev sudo apt install postgresql-client postgresql libpq-dev pgtop sudo apt install autoconf-archive flex byobu rlwrap telnet sudo apt install automake libsqlite3-dev libedit-dev ``` -------------------------------- ### Start OpenCog Server Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Starts the OpenCog cogserver. This involves sourcing a pipeline script, changing to the cogserver run directory, and executing the run script. ```bash $ source run-config/0-pipeline.sh $ cd run/2-word-pairs $ ./run-cogserver.sh ``` -------------------------------- ### Install lg-atomese Component Source: https://github.com/opencog/learn/blob/master/README-Natural.md Instructions for installing the lg-atomese component of OpenCog using Git and CMake. This involves cloning the repository, configuring the build with CMake, compiling, and installing. ```shell git clone https://github.com/opencog/lg-atomese cd lg-atomese; mkdir build; cd build cmake .. make -j sudo make install ``` -------------------------------- ### Install bdwgc Library Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Steps to clone, configure, build, and install the bdwgc (Boehm-Demers-Weiser conservative garbage collector) library. This is a mandatory pre-installation step for handling large datasets, preventing 'Too many heap sections' errors. ```shell git clone https://github.com/ivmai/bdwgc cd bdwgc git checkout release-7_6 ./autogen.sh ./configure --enable-large-config make; sudo make install ``` -------------------------------- ### Core CogUtil Learn Scripts Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs core utility scripts and Scheme programs for the CogUtil learn module. These include server components, file processing utilities, and general processing scripts. ```scheme cogserver-gram.scm cogserver-lg.scm cogserver-mst.scm cogserver-pair.scm cogserver.scm marginals-mst.scm marginals-mst-shape.scm marginals-pair.scm trim-pair.scm ``` ```shell file-block-process.sh file-line-process.sh file-split-process.sh file-xform-process.sh halt-all.sh process-corpus.sh renice.sh socket-send.pl split-sentences.pl submit-block.pl submit-lines.pl ``` -------------------------------- ### Start Cogserver REPL Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Launches the Cogserver REPL (Read-Eval-Print Loop) using Guile. It connects to the 'learn_pairs' database with specified user and password, ready to process language data. ```guile $ cd ~/learn/build/run-ull/ $ guile -l launch-cogserver.scm -- --mode pairs --lang en --db learn_pairs --user opencog_user --password cheese ``` -------------------------------- ### Run Configuration Scripts Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs shell scripts used for configuring the learning pipeline and various processing stages. These scripts define parameters and execution flows for different learning tasks. ```shell 0-pipeline.sh 2-pair-conf.sh 3-mpg-conf.sh 4-gram-conf.sh ``` -------------------------------- ### Run NLP Pipeline Script (English Example) Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md An example of running the NLP pipeline script specifically for the English language, including database and user credentials. ```shell ./run-multiple-terminals.sh mst en en_pairs opencog_user cheese ``` -------------------------------- ### Run Cogserver for English Pair Processing (Example) Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md An example of running the cogserver for English language pair processing, specifying user and password. This demonstrates how to substitute placeholder arguments with actual values for a specific language and user. ```shell ./run-multiple-terminals.sh pairs en en_pairs opencog_user cheese ``` -------------------------------- ### Postgres Database Setup (Scheme) Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md This snippet demonstrates how to set up distinct PostgreSQL databases, one for each language, using Scheme. It requires specific OpenCog modules for persistence and SQL operations. ```scheme (use-modules (opencog) (opencog persist) (opencog persist-sql)) (sql-create "postgres:///en_word_pairs") ``` -------------------------------- ### Start Cogserver Script (Shell) Source: https://github.com/opencog/learn/blob/master/attic/run-v3/run/2-word-pairs/README.md Starts a guile shell, runs the atomspace, starts the cogserver in the background, and opens the storage database. This script is a prerequisite for submitting text for word-pair counting. ```Shell run-cogserver.sh ``` -------------------------------- ### Install Docker Compose Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Installs or updates the docker-compose tool using pip. This is a prerequisite for managing Docker containers and services. ```bash ~$ sudo pip install -U docker-compose ``` -------------------------------- ### Install Cogutils, Atomspace, and Learn Projects Source: https://github.com/opencog/learn/blob/master/README-Calibration.md Instructions for cloning and building dependent projects including cogutils, atomspace, and the learn project itself. This process involves using git, cmake, and make for compilation and installation. ```shell git clone https://github.com/opencog/cogutils cd cogutils; mkdir build; cd build; cmake ..; make sudo make install ``` -------------------------------- ### Gram Class Processing Scripts Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs shell scripts for the Gram Class module, focusing on running all gram class tasks and initiating the gram class cogserver. ```shell run-all-gram.sh run-gram-cogserver.sh ``` -------------------------------- ### Install Link Grammar Source: https://github.com/opencog/learn/blob/master/README-Calibration.md Steps to download, unpack, configure, and compile the Link Grammar parser from source. This is a prerequisite for the language learning project. ```shell tar -zxf link-grammar-*.tar.gz cd link-grammar-* mkdir build; cd build; ../configure; make -j sudo make install ``` -------------------------------- ### Example Channel Grammar Structure Source: https://github.com/opencog/learn/blob/master/README-Vision.md Illustrates a concrete example of a directed tree of image-processing operations, representing a channel grammar. This structure defines filters and their parameters. ```Lisp-like (GreaterThanLink (Number 0.5) (HueFilterLink (Number 0.0 0.0 1.0) (HaarWavelet (Number 0 1) (VariableNode "x")))) ``` -------------------------------- ### Install Required Build Tools and Libraries Source: https://github.com/opencog/learn/blob/master/README-Natural.md Installs essential build tools and development libraries required for compiling OpenCog components. This includes git, cmake, C++ compiler, Boost libraries, Guile development headers, RocksDB, and other utilities necessary for the build process. ```bash sudo apt install git cmake g++ sudo apt install libboost-filesystem-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev sudo apt install guile-3.0-dev librocksdb-dev libuuid-dev sudo apt install autoconf-archive flex byobu rlwrap telnet sudo apt install automake libpcre2-dev libedit-dev ``` -------------------------------- ### Word Pairs Processing Scripts Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs shell scripts for processing word pairs, including dataset trimming, marginal computation, and submitting tasks. These are part of the project's statistical learning modules. ```shell pair-submit.sh trim-dataset.sh compute-marginals.sh run-shells.sh halt.sh run-all.sh run-cogserver.sh ``` -------------------------------- ### Initialize PostgreSQL Database Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Initializes a PostgreSQL database named 'learn_pairs' using Scheme. This command is part of the AtomSpace setup for collecting statistics. ```scheme (use-modules (opencog) (opencog persist) (opencog persist-sql)) (sql-create "postgres:///learn_pairs") ``` -------------------------------- ### MST Parsing Scripts Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs shell scripts for the Minimum Spanning Tree (MST) parsing module. This includes scripts for running MST shells, submitting MST tasks, and computing MST marginals. ```shell run-mst-shells.sh run-mst-cogserver.sh mst-submit.sh run-all-mst.sh compute-mst-marginals.sh ``` -------------------------------- ### Rebuild and Reinstall Cogutil Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Provides instructions for cleaning the build directory, reconfiguring, compiling, and installing the 'cogutil' library. This is a troubleshooting step for connection issues. ```bash ~$ cd /cogutil/build /cogutil/build$ rm -rf * /cogutil/build$ cmake .. /cogutil/build$ make && sudo make install ``` -------------------------------- ### OpenCV Image Processing Pipeline Example Source: https://github.com/opencog/learn/blob/master/README-Vision.md Illustrates a typical sequence of operations from an OpenCV tutorial for image segmentation. This sequence includes sharpening, grayscale conversion, binary conversion, distance transform, thresholding, and watershed. This serves as an example of filter sequences the system aims to learn. ```APIDOC OpenCV Image Processing Pipeline: 1. Sharpen 2. Grayscale conversion 3. Binary conversion 4. Distance transform 5. Thresholding 6. Watershed segmentation ``` -------------------------------- ### Run OpenCog Docker Container Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Starts the OpenCog development environment container using docker-compose. This command launches the 'dev' service defined in the docker-compose configuration. ```bash ~$ cd docker/opencog/ ~/docker/opencog$ docker-compose run dev ``` -------------------------------- ### ADD_GUILE_MODULE for OpenCog Source: https://github.com/opencog/learn/blob/master/fake/CMakeLists.txt This snippet demonstrates the use of the ADD_GUILE_MODULE macro to define and install Guile Scheme modules for OpenCog. It specifies the source files and the destination directory for the modules. ```Scheme ADD_GUILE_MODULE (FILES fake.scm print-dict.scm random-dict.scm zipf.scm zipf-zri.scm MODULE_DESTINATION "${GUILE_SITE_DIR}/opencog/nlp/fake" ) ``` -------------------------------- ### Database Initialization and Loading Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Creates a PostgreSQL database named 'learn_pairs' and loads initial schema data from 'atom.sql'. This prepares the database for storing ULL pipeline results. ```sql $ createdb learn_pairs $ cat atom.sql | psql learn_pairs ``` -------------------------------- ### Configure Guile REPL Environment Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Content to be added to the ~/.guile file to configure the Guile REPL. It enables readline support, backtrace debugging, position tracking, and adds the current directory to the load path. ```scheme (use-modules (ice-9 readline)) (activate-readline) (debug-enable 'backtrace) (read-enable 'positions) (add-to-load-path ".") ``` -------------------------------- ### Install LXC Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Installs the LXC (Linux Containers) package on Debian/Ubuntu-based systems using the apt-get package manager. ```bash sudo apt-get install lxc ``` -------------------------------- ### Initialize PostgreSQL Database for OpenCog Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Commands to create a new PostgreSQL database named 'learn_pairs' and initialize it by loading the atomspace SQL schema. This prepares the database for storing parsed text data. ```shell createdb learn_pairs cat $ATOMSPACE_SOURCE_DIR/opencog/persist/sql/multi-driver/atom.sql | psql learn_pairs ``` -------------------------------- ### Build and Install BDWGC for Large Heap Support Source: https://github.com/opencog/learn/blob/master/README-Natural.md Installs the Boehm Garbage Collector (bdwgc) with large configuration support to resolve 'Too many heap sections' errors in Guile. This involves cloning the repository, checking out a specific version, configuring the build, compiling, and installing it system-wide. ```bash git clone https://github.com/ivmai/bdwgc cd bdwgc git checkout v8.0.4 # (or newer) ./autogen.sh mkdir build; cd build; ../configure --enable-large-config make -j; sudo make install ``` -------------------------------- ### Display Link Grammar Version Source: https://github.com/opencog/learn/blob/master/README-Natural.md Command to display the currently installed version of the link-parser tool. This is useful for verifying the installation or checking compatibility. ```shell link-parser --version ``` -------------------------------- ### Prepare Text Data Directory (Bash) Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Copies an example text data folder ('alpha-pages') to a new directory ('beta-pages') for processing. This prepares a location for training plain text files, which will be consumed by the pipeline. Note that processed files are removed from this directory. ```bash cp -pr alpha-pages beta-pages ``` -------------------------------- ### Start Docker Container Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Starts an inactive Docker container. Requires the container ID. This command is essential for resuming previously stopped instances. ```shell docker start container_ID ``` -------------------------------- ### Run Directory Scripts Source: https://github.com/opencog/learn/blob/master/run-common/CMakeLists.txt Installs shell scripts located in the main 'run' directory, including a tmux runner script for managing parallel processes. ```shell run-tmux.sh ``` -------------------------------- ### Install Jieba for Chinese Segmentation Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md This command installs the Jieba library, a popular Python package for Chinese text segmentation. It is a prerequisite for processing Chinese text data within the OpenCog pipeline. ```bash pip install jieba ``` -------------------------------- ### Build OpenCog Docker Images Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Navigates to the OpenCog Docker directory and executes the build script to create necessary Docker images for the OpenCog environment. ```bash ~$ cd docker/opencog/ ~/docker/opencog$ ./docker-build.sh -a ``` -------------------------------- ### Configure Guile Environment Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Sets up the Guile environment by enabling readline support for interactive use, detailed backtraces for debugging, position reporting for errors, and adding the current directory to the load path. ```scheme (use-modules (ice-9 readline)) (activate-readline) (debug-enable 'backtrace) (read-enable 'positions) (add-to-load-path ".") ``` -------------------------------- ### Install BDWGC for Large Configurations Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Installs the Boehm-Demers-Weiser Garbage Collector (bdwgc) with support for large configurations, essential for handling large datasets in Guile. This step is mandatory to prevent 'Too many heap sections' errors. ```bash git clone https://github.com/ivmai/bdwgc cd bdwgc git checkout v8.0.4 # (or newer) ./autogen.sh mkdir build; cd build; ../configure --enable-large-config make -j; sudo make install ``` -------------------------------- ### Start OpenCog Cogserver REPL Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Command to launch the OpenCog cogserver REPL in 'pairs' mode for English language processing. It connects to the specified PostgreSQL database 'learn_pairs' with optional user and password credentials. ```shell guile -l launch-cogserver -- --mode pairs --lang en --db learn_pairs --user opencog_user --password cheese ``` -------------------------------- ### Create Language Databases (SQL/Bash) Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Sets up distinct PostgreSQL databases for different languages (e.g., French, Lithuanian, Polish, English). It then loads the 'atom.sql' schema into each created database, preparing the persistence layer for parsed data. ```bash createdb fr_pairs lt_pairs pl_pairs en_pairs cat $ATOMSPACE_SOURCE_DIR/opencog/persist/sql/multi-driver/atom.sql | psql ??_pairs ``` -------------------------------- ### Initialize Clustering Environment Source: https://github.com/opencog/learn/blob/master/attic/run-v3/README-Natural-v3.md Scheme code to load necessary OpenCog modules for persistence, RocksDB, NLP, and matrix operations, and to open a connection to the specified RocksDB database. ```Scheme (use-modules (opencog) (opencog persist) (opencog persist-rocks)) (use-modules (opencog nlp) (opencog nlp learn)) (use-modules (opencog matrix)) (cog-rocks-open "rocks:///home/ubuntu/data/expt-8/gram-1.rdb") ``` -------------------------------- ### Run Cogserver for Pair Processing Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Starts the OpenCog cogserver with parameters for processing word pairs. Arguments include the language, database credentials, and user/password. This command sets up the environment for subsequent text processing tasks. ```shell ./run-multiple-terminals.sh pairs lang ??_pairs your_user your_password ``` -------------------------------- ### Annotated Transformer API Example Source: https://github.com/opencog/learn/blob/master/learn-lang-diary/Reading-List.md This resource provides a significant amount of Python code that implements an API for a transformer model. It includes descriptive text explaining each step of the implementation, offering an example of a typical Python API structure for machine learning models. ```python class TransformerAPI: def __init__(self, model_config): # Initialize transformer model with configuration self.model = self.build_model(model_config) def build_model(self, config): # Placeholder for actual model building logic print("Building transformer model...") return "TransformerModelInstance" def predict(self, input_data): # Placeholder for prediction logic print("Performing prediction...") return "PredictionResult" def train(self, training_data, epochs): # Placeholder for training logic print(f"Training model for {epochs} epochs...") return "TrainingStatus" # Example Usage: # config = {"layers": 6, "heads": 8, "dim": 512} # transformer_api = TransformerAPI(config) # result = transformer_api.predict("sample input") ``` -------------------------------- ### Clone and Checkout Guile Stable Version Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Instructions to clone the Guile Scheme interpreter repository and checkout the stable-2.2 branch. Using Guile version 2.2.2.1 or newer is critical to avoid issues like assertion failures and hangs in par-for-each. ```shell git clone git://git.sv.gnu.org/guile.git git checkout stable-2.2 ``` -------------------------------- ### Prepare Link Grammar for Tokenization (Bash) Source: https://github.com/opencog/learn/blob/master/attic/run-poc/README.md Adjusts the link-grammar configuration by moving the original 'affix-punc' file and creating an empty one. This is a prerequisite for the pipeline's naive tokenization process, ensuring it doesn't use an ad-hoc tokenizer. ```bash sudo mv /usr/local/share/link-grammar/any/affix-punc /usr/local/share/link-grammar/any/affix-punc_original sudo touch /usr/local/share/link-grammar/any/affix-punc ``` -------------------------------- ### Synonym Assignment Example Source: https://github.com/opencog/learn/blob/master/fake/README.md Demonstrates how synonyms are assigned to representative words in the corpus generation process. ```APIDOC able baker charlie: Wyada; ```