Skip to content

Commit

Permalink
Spell-check
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Sep 11, 2024
1 parent edc0e8f commit 6976016
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions opencog/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV DEBIAN_FRONTEND=noninteractive

# Bump this date, in order to force the apt-update to run again.
# Otherwise, it will use the cached Docker container, which might
# be stale or be missing secruity updates.
# be stale or be missing security updates.
ENV LAST_OS_UPDATE 2023-02-07
RUN apt-get update && apt-get -y upgrade

Expand Down Expand Up @@ -60,7 +60,7 @@ USER opencog
WORKDIR /home/opencog

# Setup config files
## Dont't mount host volumes to opencog's home directory inside the
## Don't mount host volumes to opencog's home directory inside the
## container, if you do you will not find the contents copied below
COPY /scripts/ /home/opencog
RUN sudo chown -R opencog:opencog .guile .gdbinit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# 0-pipeline.sh
#
# Master file for configuration parameters for langugage learning.
# Master file for configuration parameters for language learning.
# This particular file is aimed at artificial-language/corpus
# generation and processing.
# ----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ to get these datasets.
* r13-one-sim200.rdb -- 8.2GB to load word-pairs, word-disjunct
pairs and similarities.

* r13-all-in-one.rdb -- trimed, modified copy of `r14-sim200.rdb`
* r13-all-in-one.rdb -- trimmed, modified copy of `r14-sim200.rdb`
It has the following stuff:
-- Word pairs, from long ago. These are trimmed to remove all
word-pairs with MI of 1.1 or less, leaving 3.9M pairs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; navigate.scm
;
; Quick-n-dirty wrapper for getting word-pair similarity.
; Assumes that there are matrix objets and loaded data
; Assumes that there are matrix objects and loaded data
; as descrbied in README.md
;

Expand All @@ -14,8 +14,8 @@
; So, given a vertex, the left-stars are a list of all edges
; pointing at the vertex. The right-stars are all the edges
; pointing away from the vertex. The left-duals are all the
; vertexes that have edges pointing at the target. The right-duals
; are all the vertexes that have edges pointing away from the target.
; vertices that have edges pointing at the target. The right-duals
; are all the vertices that have edges pointing away from the target.
;
; The MI is the mutual information of an edge. Get it by saying
; `(pair-freq 'pair-fmi edge-atom)`
Expand All @@ -39,13 +39,13 @@
(STARS-OBJ 'get-pair OTHER-VERTEX TARGET-VERTEX)))

; Define a compare function that compares two
; vertexes... assuming both have the target-vertex
; vertices... assuming both have the target-vertex
; in common.
(define (compare-fun VTX-A VTX-B)
(> (SCORE-EDGE (get-edge VTX-A))
(SCORE-EDGE (get-edge VTX-B))))

; Get the list of all vertexes that are joined
; Get the list of all vertices that are joined
; by some edge to the target vertex.
(define tail-verts
(if FWD
Expand Down
2 changes: 1 addition & 1 deletion opencog/lang-mst/autorun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# marginals, and copies out the resulting dataset.
#
# Expects to find a text corpus in the `input-pages/pair-counted` directory.
# Expects a databse with word-pair marginals in `data/mst-parse.rdb`
# Expects a database with word-pair marginals in `data/mst-parse.rdb`
#
# If used with the `-u` flag, then an existing container will be updated
# with additional counting. Useful for splitting up large counting runs
Expand Down
4 changes: 2 additions & 2 deletions opencog/lang-mst/demo-dict-mpg/storage.dict
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
% -----------------------
% Pair config.
%
% Novel sentences containining rarely-seen words might not be parsable,
% Novel sentences containing rarely-seen words might not be parsable,
% even when the sections on them are decorated with extra connectors.
% In this case, fall back to MST-style parsing, and create disjuncts
% consisting of connectors obtained entirely from word-pairs.
Expand Down Expand Up @@ -135,7 +135,7 @@
% Enable expressions that consist entirely of "ANY" link-types.
#define any-disjuncts 1;

% Enble the automatic generation of <UNKNOWN-WORD>. It will be
% Enable the automatic generation of <UNKNOWN-WORD>. It will be
% automatically added to the dictionary, with multi-ANY connectors
% on it. The ANY connectors will be used, irresepctive of the other
% `any` setting above.
Expand Down
2 changes: 1 addition & 1 deletion opencog/lang-pairs/demo-dict-pair/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Demo Atomese word-pair dictionary
---------------------------------
This is an example configuration for an AtomSpace-backed dictionary,
configured for parsing using word-pair MI data. The resulting parses
are Maximimum Planar Graph parses: parses that draw links between words
are Maximum Planar Graph parses: parses that draw links between words
in such a way as to maximize the MI between word-pairs.

For general info about Link Grammar dictionaries running out of the
Expand Down
2 changes: 1 addition & 1 deletion opencog/lang-pairs/demo-dict-pair/storage.dict
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
% Create expressions that consist entirely of "ANY" link-types.
#define any-disjuncts 0;

% Enble the automatic generation of <UNKNOWN-WORD>. It will be
% Enable the automatic generation of <UNKNOWN-WORD>. It will be
% automatically added to the dictionary, with multi-ANY connectors
% on it. The ANY connectors will be used, irresepctive of the other
% `any` setting above.
Expand Down
2 changes: 1 addition & 1 deletion opencog/lang-pairs/scripts/count-pairs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ source 2-pair-conf.sh
cd run
rm -rf 3-mst-parsing 4-gram-class

# Remove semphore, just in case.
# Remove semaphore, just in case.
rm -f /tmp/pair-marginals-done

# Run the pair-counting pipeline in byobu.
Expand Down
2 changes: 1 addition & 1 deletion opencog/learn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /home/opencog
RUN guile -c "(use-modules (opencog nlp))"
RUN guile -c "(use-modules (opencog learn))"

# Place a basic recommended configurtion where the user can find it.
# Place a basic recommended configuration where the user can find it.
COPY /scripts/ /home/opencog
RUN sudo chown -R opencog:opencog setup-for-experiments.sh
RUN chmod ugo+x setup-for-experiments.sh
Expand Down
2 changes: 1 addition & 1 deletion opencog/learn/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
opencog/learn
-------------
This docker image contains all of the tools needed for the "learn"
subystem, including the nlp subsystem.
subsystem, including the nlp subsystem.

## Building

Expand Down

0 comments on commit 6976016

Please sign in to comment.