Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ This analyzer analyzes the 50 state webpages and creates dictionaries and a know

## Tutorial 14: Mod Files

Mod files allow for bundling text, NLP++ code (passes), dictionaries, and knowledge base files into one file that can be easily created and loaded into VisualText (the NLP++ langauge extension for VSCode).: [YouTube Video Tutorial 14](https://youtu.be/dRpGY0SPLSo)
Mod files allow for bundling text, NLP++ code (passes), dictionaries, and knowledge base files into one file that can be easily created and loaded into VisualText (the NLP++ langauge extension for VSCode).: [YouTube Video Tutorial 14](https://youtu.be/dRpGY0SPLSo)

# Tutorial 15: Resolving Ambiguity

This tutorial you will learn about the new mechanisms to help resolve with ambiguity. Ambiguity is when a word in isolation can have more than one meaning. Dealing with ambiguity in NLP++ is a cordinated effort between dictionaries, knowledge bases, and rule matching. [YouTube Video Tutorial 14](https://youtu.be/XLEj1hsS4ME)
5 changes: 5 additions & 0 deletions tutorial-15/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Tutorial 15: Resolving Ambiguity

This tutorial you will learn about the new mechanisms to help resolve with ambiguity. Ambiguity is when a word in isolation can have more than one meaning. Dealing with ambiguity in NLP++ is a cordinated effort between dictionaries, knowledge bases, and rule matching.

Click here to see the [Tutorial Video on YouTube](https://youtu.be/XLEj1hsS4ME).
2 changes: 2 additions & 0 deletions tutorial-15/input/text.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Did you google his friend?
He works at google.
6 changes: 6 additions & 0 deletions tutorial-15/kb/user/ambigs.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
google pos=verb
google pos=noun
google pos=adj

at pos=prep
his pos=pro
4 changes: 4 additions & 0 deletions tutorial-15/kb/user/ambigs.kbb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dictionary
google
m01: pos=verb, syn=search
m02: pos=noun, entity=company
254 changes: 254 additions & 0 deletions tutorial-15/kb/user/attr.kb
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
ind attr
"concept"
0
"concept" "sys" "attrs" "common" "var"
psym
"cg_CONCEPT"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "x" "xu" "xwhite"
pst
"true"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "c" "co" "constrain"
pst
"true"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "c" "cl" "closed"
pst
"false"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "l" "li" "lit"
pst
"false"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "s" "sp" "split"
pst
"false"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "g" "ge" "gen"
pst
"false"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "l" "lo" "locked"
pst
"false"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "d" "di" "dirty"
pst
"true"
end ind


ind attr
"concept" "gram"
0
"concept" "sys" "dict" "a" "q" "qu" "quicksem"
pst
"false"
end ind


ind attr
"concept" "sys"
0
"concept" "sys" "attrs" "common" "var"
psym
"con_SYS"
end ind


ind attr
"concept" "sys" "attrs"
0
"concept" "sys" "attrs" "common" "var"
psym
"sys_ATTRS"
end ind


ind attr
"concept" "sys" "attrs" "proxy"
0
"concept" "sys" "attrs" "common" "var"
psym
"attrs_PROXY"
end ind


ind attr
"concept" "sys" "attrs" "proxy" "atom"
0
"concept" "sys" "attrs" "common" "var"
psym
"cg_ATOM"
end ind


ind attr
"concept" "sys" "attrs" "pproxy"
0
"concept" "sys" "attrs" "common" "var"
psym
"attrs_PPROXY"
end ind


ind attr
"concept" "sys" "attrs" "pproxy" "phrase"
0
"concept" "sys" "attrs" "common" "var"
psym
"cg_PHRASE"
end ind


ind attr
"concept" "sys" "attrs" "common"
0
"concept" "sys" "attrs" "common" "var"
psym
"attrs_COMMON"
end ind


ind attr
"concept" "sys" "attrs" "common" "var"
0
"concept" "sys" "attrs" "common" "var"
psym
"cg_VAR"
end ind


ind attr
"concept" "sys" "nlp"
0
"concept" "sys" "attrs" "common" "var"
psym
"sys_NLP"
end ind


ind attr
"concept" "sys" "nlp" "lex" "slot" "cases"
0
"concept" "sys" "attrs" "common" "var"
psym
"id_CASES"
end ind


ind attr
"concept" "sys" "mean" "slot" "case"
0
"concept" "sys" "attrs" "common" "var"
psym
"id_mslot_CASE"
end ind


ind attr
"concept" "sys" "mean" "slot" "case" "cap"
0
"concept" "sys" "attrs" "common" "var"
psym
"id_CAP"
end ind


ind attr
"concept" "sys" "mean" "slot" "case" "allcap"
0
"concept" "sys" "attrs" "common" "var"
psym
"id_ALLCAP"
end ind


ind attr
"concept" "sys" "mean" "slot" "case" "mixed"
0
"concept" "sys" "attrs" "common" "var"
psym
"id_MIXED"
end ind


ind attr
"concept" "sys" "mean" "slot" "mixed"
0
"concept" "sys" "attrs" "common" "var"
psym
"id_mslot_MIXED"
end ind


ind attr
"concept" "sys" "dict"
0
"concept" "sys" "attrs" "common" "var"
psym
"sys_DICT"
end ind


ind attr
"concept" "sys" "dict" "a"
0
"concept" "sys" "attrs" "common" "var"
psym
"dict_ALPHA"
end ind


ind attr
"concept" "sys" "dict" "unknown"
0
"concept" "sys" "attrs" "common" "var"
psym
"dict_UNKNOWN"
end ind


quit

Loading