¸¶ºñ

MAGPY´Â MG °Ë»ö ¿£ÁøÀ»À§ÇÑ ÆÄÀ̽㠷¡ÆÛÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

¸¶ºñ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • GPL
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Matthias Kramm
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.athana.org/magpy/

¸¶ºñ ű×


¸¶ºñ ¼³¸í

MAGPY´Â MG °Ë»ö ¿£ÁøÀ»À§ÇÑ ÆÄÀ̽㠷¡ÆÛÀÔ´Ï´Ù. MAGPY´Â MG °Ë»ö ¿£ÁøÀ»À§ÇÑ ÆÄÀ̽㠷¡ÆÛÀÔ´Ï´Ù .MAGPY ¸ðµâÀº ºü¸¥ Àüü ÅؽºÆ® Sarch, Indexing ¹× Boolean Queries¸¦ Á¦°øÇÕ´Ï´Ù. GPL (ÀÏ¹Ý ´ëÁß ¶óÀ̼¾½º)¿¡¼­ BOTH MG ¹× MAGPY°¡ Ãâ½ÃµË´Ï´Ù. ¼³Ä¡ : ¼Ò½º¿¡¼­ mAGPY¸¦ ¼³Ä¡ÇÏ·Á¸é ¾ÆÄ«À̺긦 ÃßÃâÇÕ´Ï´Ù. magpy - *. tar.gz, ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇÕ´Ï´Ù. ./configurepython setup.py buildpython setup.py installusage : ´ÙÀ½ ½ºÅ©¸³Æ®´Â °£´ÜÇÑ °Ë»ö ÇÁ·ÐÆ® ¿£µå¸¦ º¸¿©ÁÝ´Ï´Ù. #! / usr / bin / pythonimport mgindexerimport mgqueryimport sysstore = mgquery.mgsearchstore ( "/ tmp / data", "alice") while 1 : query = sys.stdin.readline () q = store.newQuery (Äõ¸®) "°Ë»ö", Äõ¸®, "(´Ü¾î", Q.WORDS () , ")"Q.EXECUTE ()ÀÇ ¼øÀ§ () : "¹®¼­", DOCNUM, "ÀÏÄ¡ (¼øÀ§", ", ¼øÀ§") "¸¦ ¸ÕÀú °Ë»öÇÏ¿© °Ë»ö ÀúÀå¼Ò¸¦ ¸¸µé¾î¾ßÇÕ´Ï´Ù. "/ tmp / data"¶ó´Â À̸§ÀÇ "¾Ù¸®½º"¶ó´Â À̸§ÀÔ´Ï´Ù. ´ÙÀ½ ½ºÅ©¸³Æ®´Â ¿ø½Ã ÅؽºÆ® ÆÄÀÏ¿¡¼­ ÀÌ·¯ÇÑ ÀúÀå¼Ò¸¦ »ý¼ºÇÕ´Ï´Ù.ÀÌ ¹®¼­´Â ´Ü¶ôÀ¸·Î ³ª´©¾î °³º° ¹®¼­·Î ºÐÇÒÇÕ´Ï´Ù. #! / usr / bin / pythonimport mgindexerfi = ¿­±â ( "alice13a.txt", "rb") fo = ¿­±â ( "alice13a.splitted.txt", "wb") : # ºÐÇÒ line.strip () == "" ": fo.write (mgindexer.separator) else : fo.write (line) fo.close () fi.close () mgindexer.makeindex ("alice13a.splitted) ÀÎ °æ¿ì ´Ü¶ô °æ°è ÆÄÀÏ .txt ","/ tmp / data / ","alice ") °Ë»öÀ» ½ÇÇàÇÏ·Á´Â °³º° ¹®¼­°¡ ¸¹Àº °æ¿ì ´ÙÀ½ ½ºÅ©¸³Æ®°¡ ÇÊ¿ä·ÎÇϴ´ë·Î ´õ °¡±õ½À´Ï´Ù (»õ·Î¿î Ä÷º¼ÇÀ» ¸¸µì´Ï´Ù. À̸§ "ÆÄÀÏ"À̶ó´Â À̸§ÀÇ Äõ¸® ½ºÅ©¸³Æ®ÀÇ ¿¹Á¦ Äõ¸® ½ºÅ©¸³Æ®¿¡¼­ "ÆÄÀÏ"À¸·Î "¾Ù¸®½º"¸¦ ´ëüÇؾßÇÕ´Ï´Ù. os.listDir ÆÄÀÏÀÇ ÆÄÀÏ¿¡ ´ëÇÑ "wb": os.path.isfile (°æ·Î + ÆÄÀÏ) : fi.readlines () ¶óÀο¡ ´ëÇÑ ÆÄÀÏ fi = ¿­±â (°æ·Î + ÆÄÀÏ, "rb") º¹»ç : fo.write (¶óÀÎ) # ¹®¼­ °æ°è¸¦ ÀÛ¼ºÇϽʽÿÀ. ripite (mgindexer.separator) fo.close () mgindexer.makeIndex ( "searchdata.txt", "/ tmp / data", "ÆÄÀÏ", "ÆÄÀÏ")ÀÌ ¸±¸®½º¿¡¼­´Â »õ·Î¿î ±â´ÉÀ» ÀÛ¼ºÇÕ´Ï´Ù. ¡¤ÀÌ R. Elease´Â ¿ÍÀϵå Ä«µå °Ë»ö (Àý´Ü)À» Áö¿øÇÕ´Ï´Ù. ¡¤ °ø¹é°ú ´Ù¸¥ ±¸ºÐ ±âÈ£°¡ÀÖ´Â ¹®¼­ À¯ÇüÀÌ ÀÌÁ¦ Áö¿øµË´Ï´Ù.


¸¶ºñ °ü·Ã ¼ÒÇÁÆ®¿þ¾î

Ç÷¯±× º¸µå

Ç÷¯±× º¸µå´Â ÆÄÀ̽ãÀ¸·Î ¸¸µé¾îÁø ÀÀ¿ë ÇÁ·Î±×·¥ ÇÁ·¹ÀÓ ¿öÅ©À̸ç SetupTools ¹× Zope ÀÎÅÍÆäÀ̽º¸¦ ¸Ç À§¿¡ ±¸ÃàÇß½À´Ï´Ù. ...

133

´Ù¿î·Îµå

¼öÇÐ °³Ã¼

¼öÇÐ °´Ã¼´Â ÀϹÝÀûÀÎ ÇÁ·Î±×·¡¹Ö ±â¼úÀ» »ç¿ëÇÏ¿© C ++ ¿ë ¼öÇÐ ÅÛÇø´ ¶óÀ̺귯¸®ÀÔ´Ï´Ù. ...

205

´Ù¿î·Îµå

osalp.

OSALP´Â ¸ðµç ¿Àµð¿À ±â´ÉÀ» ó¸®ÇÏ´Â C ++¿¡¼­ C ++¿¡¼­ Ŭ·¡½º ¼¼Æ®¸¦ ±¸ÇöÇϵµ·Ï ¼³°èµÈ ÇÁ·ÎÁ§Æ®ÀÔ´Ï´Ù. ...

162

´Ù¿î·Îµå