Skip to content

Commit b284a84

Browse files
CS Version 7.3 - minor typo corrections
1 parent 08bc55a commit b284a84

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

WIKI/ESOTERIC-CHATSCRIPT/ChatScript-Foreign-Languages.md

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Foreign Language Support
2-
3-
> © Bruce Wilcox, [email protected] brilligunderstanding.com
4-
5-
> Revision 3/4/2017 cs7.3
2+
© Bruce Wilcox, [email protected] brilligunderstanding.com<br>
3+
Revision 3/4/2017 cs7.3
64

75
# Foreign Language Overview
86

@@ -50,8 +48,10 @@ of a word because there is no in-built support to figure that out. You may also
5048

5149
If you want actual POS values and lemmas (canonical form of a word), you will need a POS-tagger of some sort.
5250
While it is possible to hook in an external tagger via a web call, that will be noticably slower than an
53-
in-built system. ChatScript supports in-build TreeTagger system, which supports a number of languages. However,
54-
you can only use this if you have a commercial license. You can try it out using ^popen, as is done in the German
51+
in-built system.
52+
53+
ChatScript supports in-build TreeTagger system, which supports a number of languages. However,
54+
you can only use this if you have a commercial license. You can try it out using `^popen`, as is done in the German
5555
bot, however it will be slow because it has to reinitialize TreeTagger for every sentence. The in-built system
5656
does not. A license (per language) is about $1000 for universal life-time use. You can contact me if you want to arrange to use it.
5757

@@ -69,13 +69,13 @@ apikey=AIzaSyAxxxx
6969
```
7070

7171
When I want to translate all level 0 concepts I do the following:
72-
```
72+
7373
1. erase the contents of TOPIC folder
74-
2. :build 0
74+
2. `:build 0`
7575
3. run CS using command line parameter `noboot` and your apikey
76-
4. :sortconcept x
77-
5. :translateconcept german myfilename
78-
```
76+
4. `:sortconcept x`
77+
5. `:translateconcept german myfilename`
78+
7979

8080
If you run ^csboot and that generates new concept data then you need `noboot`, otherwise it doesn't matter.
8181

@@ -86,19 +86,16 @@ If you run ^csboot and that generates new concept data then you need `noboot`, o
8686
The resulting file will automatically prepend each line with conditional compile markers for the language you named, so you can directly add it to your bot and it will only compile when you are in that language mode.
8787

8888
If you want to translate concepts from your bot, then do the following:
89-
```
89+
9090
1. erase the contents of TOPIC folder
91-
2. :build harry (or whatever your bot is)
91+
2. `:build harry` (or whatever your bot is)
9292
3. run CS using command line parameter `noboot` and your apikey
93-
4. :sortconcept x
94-
5. :translateconcept french myfilename
95-
```
96-
If you just want to translate a single concept/topic then you can call
97-
`:translateconcept ~myconcept french myfilename`. It will, as a byproduct,
98-
provide the sorted english form of the concept on a single line in
99-
`cset.txt`. If you dont give a language and filename, then it will just
100-
sort your english concept and write it out.
101-
102-
103-
93+
4. `:sortconcept x`
94+
5. `:translateconcept french myfilename`
10495

96+
If you just want to translate a single concept/topic then you can call
97+
```
98+
:translateconcept ~myconcept french myfilename
99+
```
100+
It will, as a byproduct, provide the sorted english form of the concept on a single line in `cset.txt`.
101+
If you dont give a language and filename, then it will just sort your english concept and write it out.

0 commit comments

Comments
 (0)