Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alvas@ubi:~/test$ git clone https://github.com/alvations/pywsd.git
- Cloning into 'pywsd'...
- remote: Counting objects: 1056, done.
- remote: Compressing objects: 100% (17/17), done.
- remote: Total 1056 (delta 8), reused 0 (delta 0), pack-reused 1039
- Receiving objects: 100% (1056/1056), 20.66 MiB | 936.00 KiB/s, done.
- Resolving deltas: 100% (745/745), done.
- Checking connectivity... done.
- alvas@ubi:~/test$ cd pywsd/
- alvas@ubi:~/test/pywsd$ python test_wsd.py
- ======== TESTING simple_lesk ===========
- #TESTING simple_lesk() ...
- Context: I went to the bank to deposit my money
- Sense: Synset('deposit.v.02')
- Definition: put into a bank account
- #TESTING simple_lesk() with POS ...
- Context: The river bank was full of dead fishes
- Sense: Synset('bank.n.01')
- Definition: sloping land (especially the slope beside a body of water)
- #TESTING simple_lesk() with POS and stems ...
- Context: The workers at the industrial plant were overworked
- Sense: Synset('plant.n.04')
- Definition: something planted secretly for discovery by another
- #TESTING simple_lesk() with nbest results
- Context: The workers at the industrial plant were overworked
- Senses ranked by #overlaps: [Synset('plant.n.04'), Synset('plant.n.03'), Synset('plant.n.02'), Synset('plant.n.01')]
- Definition: something planted secretly for discovery by another
- #TESTING simple_lesk() with nbest results and scores
- Context: The workers at the industrial plant were overworked
- Senses ranked by #overlaps: [(1, Synset('plant.n.04')), (1, Synset('plant.n.03')), (1, Synset('plant.n.02')), (1, Synset('plant.n.01'))]
- Definition: something planted secretly for discovery by another
- #TESTING simple_lesk() with nbest results and normalized scores
- Context: The workers at the industrial plant were overworked
- Senses ranked by #overlaps: [(0.25, Synset('plant.n.04')), (0.25, Synset('plant.n.03')), (0.25, Synset('plant.n.02')), (0.25, Synset('plant.n.01'))]
- Definition: something planted secretly for discovery by another
- ======== TESTING adapted_lesk ===========
- #TESTING adapted_lesk() ...
- Context: I went to the bank to deposit my money
- Sense: Synset('deposit.v.02')
- Definition: put into a bank account
- #TESTING adapted_lesk() with pos, stem, nbest and scores.
- Context: I went to the bank to deposit my money
- Senses ranked by #overlaps: [(2, Synset('bank.n.09')), (1, Synset('savings_bank.n.02')), (1, Synset('depository_financial_institution.n.01')), (1, Synset('bank.n.10')), (1, Synset('bank.n.07')), (1, Synset('bank.n.06')), (1, Synset('bank.n.05')), (1, Synset('bank.n.04')), (1, Synset('bank.n.03')), (1, Synset('bank.n.01'))]
- Definition: a building in which the business of banking transacted
- ======== TESTING cosine_lesk ===========
- #TESTING cosine_lesk() ...
- Context: I went to the bank to deposit my money
- Sense: Synset('bank.v.05')
- Definition: be in the banking business
- #TESTING cosine_lesk() with nbest results...
- Context: I went to the bank to deposit my money
- Senses ranked by #overlaps: [(Synset('bank.v.05'), 0.04598004898717029)]
- Definition: be in the banking business
- ======== TESTING baseline ===========
- #TESTING random_sense() ...
- Context: I went to the bank to deposit my money
- Sense: Synset('deposit.v.02')
- Definition: put into a bank account
- #TESTING first_sense() ...
- Context: I went to the bank to deposit my money
- Sense: Synset('bank.n.01')
- Definition: sloping land (especially the slope beside a body of water)
- #TESTING most_frequent_sense() ...
- Context: I went to the bank to deposit my money
- Sense: Synset('bank.n.01')
- Definition: sloping land (especially the slope beside a body of water)
- ======== TESTING similarity ===========
- Context: I went to the bank to deposit my money
- Similarity: path
- Sense: Synset('bank.n.09')
- Definition: a building in which the business of banking transacted
- Context: I went to the bank to deposit my money
- Similarity: lch
- Sense: Synset('savings_bank.n.02')
- Definition: a container (usually with a slot in the top) for keeping money at home
- Context: I went to the bank to deposit my money
- Similarity: wup
- Sense: Synset('bank.n.06')
- Definition: the funds held by a gambling house or the dealer in some gambling games
- Context: I went to the bank to deposit my money
- Similarity: res
- Sense: Synset('depository_financial_institution.n.01')
- Definition: a financial institution that accepts deposits and channels the money into lending activities
- Context: I went to the bank to deposit my money
- Similarity: jcn
- Sense: Synset('savings_bank.n.02')
- Definition: a container (usually with a slot in the top) for keeping money at home
- Context: I went to the bank to deposit my money
- Similarity: lin
- Sense: Synset('savings_bank.n.02')
- Definition: a container (usually with a slot in the top) for keeping money at home
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement