Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cgss15:students:jiayil:polyanalyst:weeklymeetings:4_15_2016 [2016/04/15 17:31]
jiayil
cgss15:students:jiayil:polyanalyst:weeklymeetings:4_15_2016 [2016/04/15 17:31] (current)
jiayil
Line 1: Line 1:
 +====== Megaputer Intelligence Weekly Meeting 4/15/2016 ======
  
 +Sergei not at the meeting.
 +
 +===== PDL with Examples -- David =====
 +
 +PDL: Pattern Description Language
 +
 +How does PDL do it?
 +
 +  -  Indexing (breaking into a number of tokens)
 +  -  Dictionaries ​
 +
 +Where is PDL used?
 +  -  Search Query
 +  -  Taxonomy
 +  -  Dimension Matrix
 +  -  Link Terms (can define sentence(art,​school) so that one point in the chart will be art,​school???​)
 +
 +
 +
 +Two main types of PDL functions: semantic functions and scoping functions
 +
 +
 +  * fn_name(term,​term1,​term2,​...)
 +  * fn_name(N,​term,​term2,​...)
 +term could be a function or a token
 +
 +PDL macros and variables:
 +
 +e.g: macro(snear3,​plan,​school)
 +
 +Check the difference between not() and negate().
 +
 +==== Tips and tricks ====
 +
 +stem(it) and stem(is) and thesaurus(difficult)
 +
 +sentence(plan/​planning,​school) not working, sentence(plan/​[planning],​school) finds every plan thing but planning, then sentence([planning],​school) finds planning
 +
 +"A B" means phrase(A,B)
 +phrase(A,​B,​C) = phrase(phrase(A,​B),​C)
 +
 +phrase(0,​surfaces,​from) and pattern(0,​surfaces,​from) both exclude punctuations.e.g:​ An apple is on the surfaces, from out there. ​
 +
 +phrase() vs pattern():
 +
 +pattern doesn'​t count stop words. use the right stop dictionary. ​
 +pattern(late,​school) -> late school or late for school
 +phrase(late,​school) -> only works for late school, not late for school
 +
 +phrase(3,​fund,​support,​school):​ only checks any two adjacent words.
 +So it works for:
 +
 +funding and community support for schools
 +
 +near(6,​phrase(3,​fund,​support,​school)):​ works for all the tokens.
 +
 +phrase(support,​school) vs. phrase(not(support),​school):​
 +
 +phrase(school,​not except()) only looks for school at the end of each sentence
 +
 +singleroot() vs. stem():
 +
 +singleroot() matches word forms with the same root as the term, say stem(friend) can find friendly and also friends
 +stem() matches word forms with the same stem as the term, say stem(friend) can find friends, not friendly.
 +
 +Join Taxonomy
cgss15/students/jiayil/polyanalyst/weeklymeetings/4_15_2016.txt ยท Last modified: 2016/04/15 17:31 by jiayil
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki