1e25b7fb1b442138e09a91e84bac79feffd2175a,cnet5_index_builder/cnet5-data/wiktionary_ja/ja_read_wiktionary.py,FindTranslations,handleLine,#FindTranslations#Any#Any#,170
Before Change
lang = "en"
translations = re.findall(r"\[\[(.*?)\]\]", line)
for translation in translations:
open_paren_pos = translation.find("(") // look for open paren -- maybe part of speech
if open_paren_pos != -1: // contains open paren
translation = translation[:open_paren_pos] // delete after paren
self.output_sense_translation(lang, translation, title, "")
def output_monolingual(self, lang, relation, term1, term2):
if "Wik" in term1 or "Wik" in term2:
After Change
chinese_match = CHINESE_TAG.search(line)
if language_match:
code = language_match.group(1)
if code in LANGUAGES_3_TO_2:
code = LANGUAGES_3_TO_2[code]
self.lang = self.langcode = code
////// Get sense-specific translation
if trans_top_match: // start translation part
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: commonsense/conceptnet5
Commit Name: 1e25b7fb1b442138e09a91e84bac79feffd2175a
Time: 2013-05-28
Author: rob@luminoso.com
File Name: cnet5_index_builder/cnet5-data/wiktionary_ja/ja_read_wiktionary.py
Class Name: FindTranslations
Method Name: handleLine
Project Name: andresriancho/w3af
Commit Name: 25cbfe064306473f81efc9c575d164d23e365422
Time: 2018-04-13
Author: self@andresriancho.com
File Name: w3af/plugins/crawl/robots_txt.py
Class Name: robots_txt
Method Name: crawl
Project Name: nltk/nltk
Commit Name: 4b21300999e11ba6f91952c05a936ccec0673e2e
Time: 2017-11-29
Author: lyyb46@gmail.com
File Name: nltk/tokenize/treebank.py
Class Name: TreebankWordTokenizer
Method Name: span_tokenize